-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix-Advantages enhancement_350_adaptive_main_page
- Loading branch information
1 parent
f389c8e
commit 2c54226
Showing
6 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import { advantagesData } from '@/mockData/advantagesData' | ||
|
||
import AdvantageCard from './AdvantageCard' | ||
|
||
const meta = { | ||
title: 'entities/AdvantageCard', | ||
component: AdvantageCard, | ||
parameters: { | ||
layout: 'centered' | ||
}, | ||
tags: ['autodocs'] | ||
} satisfies Meta<typeof AdvantageCard> | ||
|
||
export default meta | ||
type Story = StoryObj<typeof meta> | ||
|
||
export const Default: Story = () => { | ||
const image = advantagesData[0].image | ||
const alt = advantagesData[0].alt | ||
const name = advantagesData[0].name | ||
|
||
return ( | ||
<div style={{ width: '220px' }}> | ||
<AdvantageCard image={image} alt={alt} name={name} route="#" /> | ||
</div> | ||
) | ||
} | ||
|
||
Default.args = { | ||
image: advantagesData[0].image, | ||
alt: advantagesData[0].alt, | ||
name: advantagesData[0].name, | ||
route: '#' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters