-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(elements): Types for step component #3359
Conversation
🦋 Changeset detectedLatest commit: a25f2eb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@@ -18,7 +18,7 @@ import { | |||
} from '~/react/sign-in/context'; | |||
import { createContextFromActorRef } from '~/react/utils/create-context-from-actor-ref'; | |||
|
|||
export type SignInVerificationsProps = { preferred?: ClerkSignInStrategy; children: React.ReactNode } & FormProps; | |||
export type SignInVerificationsProps = { preferred?: ClerkSignInStrategy } & FormProps; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FormProps
already marks children
as required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
Description
While writing the E2E tests I noticed a bug:
I couldn't apply
className
toSignIn.Step name="choose-strategy"
andSignIn.Step name="forgot-password"
. Looking at the types, yeah, they only acceptedchildren
. They both didn't render any markup and were only Context wrappers.This PR adds
<div>
as markup around these two steps and let's one apply their props to that.While running the build process I got warnings about circular deps for Elements so I removed the barrel file for the sign-in step component and moved files around.
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change