Skip to content

Commit

Permalink
[#1447] Improve component story
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Sep 17, 2024
1 parent 7160b18 commit 4a4c22a
Showing 1 changed file with 45 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,24 @@ const mockGetDaemonConfig = {
'server-tag': '',
},
},
options: {
options: [
{
alwaysSend: true,
code: 5,
encapsulate: '',
fields: [
{
fieldType: 'ipv4-address',
values: ['192.0.2.2'],
},
],
options: [],
universe: 4,
},
],
optionsHash: '234',
}
}

export default {
Expand Down Expand Up @@ -241,6 +259,12 @@ export default {
}),
toastDecorator,
],
} as Meta

type Story = StoryObj<KeaGlobalConfigurationPageComponent>

export const Dhcp4Configuration: Story = {
args: {},
parameters: {
mockData: [
{
Expand All @@ -252,10 +276,26 @@ export default {
},
],
},
} as Meta

type Story = StoryObj<KeaGlobalConfigurationPageComponent>
}

export const Dhcp4Configuration: Story = {
export const Empty: Story = {
args: {},
}
parameters: {
mockData: [
{
url: 'http://localhost/api/daemons/1/config',
method: 'GET',
status: 200,
delay: 2000,
response: {
appName: 'kea-server',
appType: 'kea',
appId: 1,
daemonName: 'dhcp4',
config: {},
options: {},
},
},
],
},
}

0 comments on commit 4a4c22a

Please sign in to comment.