Update register story

This commit is contained in:
Joseph Garrone 2024-06-03 23:54:08 +02:00
parent f239d105a7
commit 6b570f2b9a

View File

@ -25,12 +25,11 @@ export const WithFieldError: Story = {
<PageStory <PageStory
kcContext={{ kcContext={{
profile: { profile: {
attributes: [ attributesByName: {
{ email: {
name: "email",
value: "max.mustermann@gmail.com" value: "max.mustermann@gmail.com"
} }
] }
}, },
messagesPerField: { messagesPerField: {
existsError: (fieldName: string) => fieldName === "email", existsError: (fieldName: string) => fieldName === "email",
@ -81,24 +80,20 @@ export const WithPresets: Story = {
<PageStory <PageStory
kcContext={{ kcContext={{
profile: { profile: {
attributes: [ attributesByName: {
{ firstName: {
name: "firstName",
value: "Max" value: "Max"
}, },
{ lastName: {
name: "lastName",
value: "Mustermann" value: "Mustermann"
}, },
{ email: {
name: "email",
value: "max.mustermann@gmail.com" value: "max.mustermann@gmail.com"
}, },
{ username: {
name: "username",
value: "max.mustermann" value: "max.mustermann"
} }
] }
} }
}} }}
/> />