Uh oh!
There was an error while loading. Please reload this page.
refactor(clerk-js): Introduce <Drawer.Confirmation /> component - #5376
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: c362b57 The changes in this PR will be included in the next version bump. This PR includes changesets to release 22 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Uh oh!
There was an error while loading. Please reload this page.
panteliselef
left a comment
There was a problem hiding this comment.
This looks good, let's improve the issues that I mentioned, must have slipped through on previous PRs.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| const Confirmation = React.forwardRef<HTMLDivElement, ConfirmationProps>(({ open, onOpenChange, children }, ref) => { | ||
| const prefersReducedMotion = usePrefersReducedMotion(); | ||
| const { animations: layoutAnimations } = useAppearance().parsedLayout; | ||
| const isMotionSafe = !prefersReducedMotion && layoutAnimations === true; |
There was a problem hiding this comment.
Does it make sense to simply return this from usePrefersReducedMotion ?
There was a problem hiding this comment.
I tried introducing a useMotionSafe hook that handled both of these hooks but ran into a circular import issue. Can revisit in the future again.
Description
Introduce
<Drawer.Confirmation />component to be used within Commerce cancel subscription flow.Screen.Recording.2025-03-17.at.3.42.24.PM.mov
Resolves COM-148
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change