Skip to content

Commit

Permalink
docs: add DisplayGapsPercentage to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
griseduardo committed Oct 22, 2024
1 parent 85808d6 commit 2a72b6b
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/pages/components/DisplayGapsPercentage.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import { Meta, StoryObj } from '@storybook/react'
import DisplayGapsPercentage from './DisplayGapsPercentage'

const meta: Meta<typeof DisplayGapsPercentage> = {
title: 'Components/DisplayGapsPercentage',
component: DisplayGapsPercentage,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
}

export default meta
type Story = StoryObj<typeof DisplayGapsPercentage>

export const GreatGapPercentage: Story = {
args: {
gapsPercentage: 5,
decentPercentage: 10,
terriblePercentage: 15

Check failure on line 20 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
},
parameters: {
docs: {
description: {
story: 'When gapsPercentage is lower than decentPercentage'

Check failure on line 25 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 26 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 27 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 28 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

export const DecentGapPercentage: Story = {
args: {
gapsPercentage: 12,
decentPercentage: 10,
terriblePercentage: 15

Check failure on line 35 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
},
parameters: {
docs: {
description: {
story: 'When gapsPercentage is between decentPercentage and terriblePercentage'

Check failure on line 40 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 41 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 42 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

Check failure on line 43 in src/pages/components/DisplayGapsPercentage.stories.tsx

View workflow job for this annotation

GitHub Actions / local-tests

Insert `,`
}

export const TerribleGapPercentage: Story = {
args: {
gapsPercentage: 17,
decentPercentage: 10,
terriblePercentage: 15
},
parameters: {
docs: {
description: {
story: 'When gapsPercentage is higher than terriblePercentage'
}
}
}
}

0 comments on commit 2a72b6b

Please sign in to comment.