-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(clerk-js): Move errors below the header in all components (#2796)
* fix(clerk-js): Move errors below the header in all components * chore(repo): Add Changeset
- Loading branch information
Showing
7 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
33 changes: 14 additions & 19 deletions
33
packages/clerk-js/src/ui/common/CustomPageContentContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
import { Col, descriptors } from '../customizables'; | ||
import { Card, useCardState, withCardStateProvider } from '../elements'; | ||
import type { CustomPageContent } from '../utils'; | ||
import { ExternalElementMounter } from '../utils'; | ||
|
||
export const CustomPageContentContainer = withCardStateProvider( | ||
({ mount, unmount }: Omit<CustomPageContent, 'url'>) => { | ||
const card = useCardState(); | ||
return ( | ||
export const CustomPageContentContainer = ({ mount, unmount }: Omit<CustomPageContent, 'url'>) => { | ||
return ( | ||
<Col | ||
elementDescriptor={descriptors.page} | ||
gap={8} | ||
> | ||
<Col | ||
elementDescriptor={descriptors.page} | ||
elementDescriptor={descriptors.profilePage} | ||
gap={8} | ||
> | ||
<Card.Alert>{card.error}</Card.Alert> | ||
<Col | ||
elementDescriptor={descriptors.profilePage} | ||
gap={8} | ||
> | ||
<ExternalElementMounter | ||
mount={mount} | ||
unmount={unmount} | ||
/> | ||
</Col> | ||
<ExternalElementMounter | ||
mount={mount} | ||
unmount={unmount} | ||
/> | ||
</Col> | ||
); | ||
}, | ||
); | ||
</Col> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters