Skip to content

Commit

Permalink
chore(clerk-js): Initially render Keyless UI as collapsed (#4857)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef authored Jan 9, 2025
1 parent 4260611 commit e8b4a4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fluffy-peas-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Initially render Keyless UI as collapsed.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const buttonIdentifier = `${buttonIdentifierPrefix}-button`;
const contentIdentifier = `${buttonIdentifierPrefix}-content`;

const _KeylessPrompt = (_props: KeylessPromptProps) => {
const [isExpanded, setIsExpanded] = useState(true);
const [isExpanded, setIsExpanded] = useState(false);
const claimed = Boolean(useRevalidateEnvironment().authConfig.claimedAt);

const isForcedExpanded = claimed || isExpanded;
Expand Down

0 comments on commit e8b4a4c

Please sign in to comment.