Skip to content

Commit

Permalink
chore: remove hard-coded title in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Oct 10, 2023
1 parent ec3d744 commit fee54ee
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion examples/nextjs-spa/src/pages/registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const Registration: NextPageWithLayout = () => {
// create a registration form that dynamically renders based on the flow data using Ory Elements
<UserAuthCard
cardImage="/ory.svg"
title={"Registration"}
// This defines what kind of card we want to render.
flowType={"registration"}
// we always need to pass the flow to the card since it contains the form fields, error messages and csrf token
Expand Down
1 change: 0 additions & 1 deletion examples/preact-spa/src/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const Login = () => {
forgotPasswordURL: "/recovery",
signupURL: "/registration",
}}
title={"Login"}
includeScripts={true}
onSubmit={({ body }) => submitFlow(body as UpdateLoginFlowBody)}
/>
Expand Down
1 change: 0 additions & 1 deletion examples/preact-spa/src/recovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const Recovery = () => {

return flow ? (
<UserAuthCard
title="Recovery"
flow={flow}
flowType={"recovery"}
additionalProps={{ loginURL: "/login" }}
Expand Down
1 change: 0 additions & 1 deletion examples/preact-spa/src/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const Register = () => {
<UserAuthCard
flow={flow}
flowType={"registration"}
title={"Registration"}
additionalProps={{
loginURL: "/login",
}}
Expand Down
1 change: 0 additions & 1 deletion examples/preact-spa/src/verification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export const Verification = () => {
additionalProps={{
signupURL: "/registration",
}}
title="Verification"
// submit the verification form data to Ory
onSubmit={({ body }) => submitFlow(body as UpdateVerificationFlowBody)}
/>
Expand Down

0 comments on commit fee54ee

Please sign in to comment.