-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
546f489
commit 852bc86
Showing
10 changed files
with
113 additions
and
113 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
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
71 changes: 68 additions & 3 deletions
71
src/app/ui/components/containers/footers/footer.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 |
---|---|---|
@@ -1,15 +1,80 @@ | ||
import type { Meta } from '@storybook/react'; | ||
|
||
import { Footer as Component, FooterProps } from './footer'; | ||
import { LeatherButton } from '@app/ui/components/button'; | ||
|
||
import { Footer as Component } from './footer'; | ||
|
||
const meta: Meta<typeof Component> = { | ||
component: Component, | ||
tags: ['autodocs'], | ||
title: 'Design System/Containers/Footer', | ||
parameters: { | ||
controls: { | ||
disable: true, | ||
// TODO get rid of these empty controls | ||
// https://github.com/storybookjs/storybook/issues/24422 | ||
hideNoControlsWarning: true, | ||
}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export function Footer(args: FooterProps) { | ||
return <Component {...args} />; | ||
export function Footer() { | ||
return ( | ||
<Component> | ||
<LeatherButton fullWidth onClick={() => null}> | ||
Create new account | ||
</LeatherButton> | ||
</Component> | ||
); | ||
} | ||
|
||
export function SignOutConfirmFooter() { | ||
return ( | ||
<Component> | ||
<LeatherButton color="gray" flexGrow={1} variant="outline" onClick={() => null}> | ||
Cancel | ||
</LeatherButton> | ||
<LeatherButton | ||
_hover={{ opacity: 0.8 }} | ||
background="error.label" | ||
color="lightModeBrown.1" | ||
flexGrow={1} | ||
onClick={() => null} | ||
type="submit" | ||
> | ||
Sign out | ||
</LeatherButton> | ||
</Component> | ||
); | ||
} | ||
|
||
export function ReceiveTokensFooter() { | ||
return ( | ||
<Component> | ||
<LeatherButton fullWidth mt="space.05" onClick={() => null}> | ||
Copy address | ||
</LeatherButton> | ||
</Component> | ||
); | ||
} | ||
|
||
export function RequestPasswordFooter() { | ||
return ( | ||
<Component> | ||
<LeatherButton | ||
// TODO improve this | ||
// can I move this style to footer / do I need it? | ||
// - something weird happens with this button overflowing | ||
// fullWidth | ||
width={{ base: 'calc(100vw - 48px)', md: 'calc(100vw - 96px)', lg: '100%' }} | ||
onClick={() => null} | ||
mt={['unset', 'space.05']} | ||
// mx={{ base: 'space.05', md: 'unset' }} | ||
> | ||
Continue | ||
</LeatherButton> | ||
</Component> | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.