-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Logo): export logo components (#190)
Co-authored-by: kseniyakuzina <kseniyakuzina@yandex-team.ru>
- Loading branch information
Showing
10 changed files
with
62 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
|
||
import type {Meta, StoryFn} from '@storybook/react'; | ||
|
||
import {Logo} from '..'; | ||
import type {LogoProps} from '../../types'; | ||
|
||
import logoIcon from '../../../../.storybook/assets/logo.svg'; | ||
|
||
export default { | ||
title: 'components/Logo', | ||
component: Logo, | ||
args: { | ||
text: 'Service', | ||
icon: logoIcon, | ||
href: '#', | ||
onClick: () => alert('click on logo'), | ||
}, | ||
} as Meta<typeof Logo>; | ||
|
||
const ShowcaseTemplate: StoryFn<LogoProps> = (args) => <Logo {...args} />; | ||
export const Showcase = ShowcaseTemplate.bind({}); |
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 @@ | ||
export * from './Logo'; |
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
6 changes: 3 additions & 3 deletions
6
src/components/MobileHeader/Logo/Logo.scss → src/components/MobileLogo/MobileLogo.scss
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
22 changes: 22 additions & 0 deletions
22
src/components/MobileLogo/__stories__/MobileLogo.stories.tsx
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,22 @@ | ||
import React from 'react'; | ||
|
||
import type {Meta, StoryFn} from '@storybook/react'; | ||
|
||
import {MobileLogo} from '..'; | ||
import type {MobileLogoProps} from '..'; | ||
|
||
import logoIcon from '../../../../.storybook/assets/logo.svg'; | ||
|
||
export default { | ||
title: 'components/MobileLogo', | ||
component: MobileLogo, | ||
args: { | ||
text: 'Service', | ||
icon: logoIcon, | ||
href: '#', | ||
onClick: () => alert('click on logo'), | ||
}, | ||
} as Meta<typeof MobileLogo>; | ||
|
||
const ShowcaseTemplate: StoryFn<MobileLogoProps> = (args) => <MobileLogo {...args} />; | ||
export const Showcase = ShowcaseTemplate.bind({}); |
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 @@ | ||
export * from './MobileLogo'; |
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