Update register story
This commit is contained in:
parent
f239d105a7
commit
6b570f2b9a
@ -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"
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user