Skip to content

Commit

Permalink
center: update dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed Oct 30, 2023
1 parent afb76c0 commit bb52a2c
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions binary/center/templates/signin.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,25 @@
return;
}
// show sign-in panel
const signInComponent = document.querySelector('#sign-in');
window.Clerk.openSignIn(signInComponent, {
appearance: {
baseTheme: "dark"
let show = function () {
if (!window.Clerk.isReady()) {
return
}
});
clearInterval(window.intervalID)
const signInComponent = document.querySelector('#sign-in');
window.Clerk.openSignIn(signInComponent, {
appearance: {
baseTheme: "dark"
}
});
// update sign-in button to open sign-in panel
let button = document.querySelector('#sign-in-button');
button.disabled = false;
button.textContent = "Sign-in via Clerk.js"
// update sign-in button to open sign-in panel
let button = document.querySelector('#sign-in-button');
button.disabled = false;
button.textContent = "Sign-in via Clerk.js"
}
window.intervalID = setInterval(show, 200);
}
async function clerkOpen() {
Expand Down

0 comments on commit bb52a2c

Please sign in to comment.