-
Notifications
You must be signed in to change notification settings - Fork 12
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
cfbcd00
commit 0874c63
Showing
20 changed files
with
265 additions
and
264 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
src/app/settings/App/Subscriptions/Subscriptions.stories.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import BackgroundButton from 'components/atoms/Button/BackgroundButton/BackgroundButton'; | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: 100px; | ||
color: #66696a; | ||
`; | ||
|
||
const EmptyTitle = styled.h1` | ||
margin: 0 0 3px; | ||
font-size: 24px; | ||
`; | ||
|
||
const EmptyText = styled.p` | ||
margin: 0 0 20px; | ||
font-size: 18px; | ||
text-align: center; | ||
`; | ||
|
||
const EmptyButton = styled(BackgroundButton)` | ||
height: auto; | ||
padding: 10px 25px; | ||
font-size: 20px; | ||
text-transform: uppercase; | ||
`; | ||
|
||
const Empty = () => ( | ||
<Wrapper> | ||
<EmptyTitle>Aucun abonnement.</EmptyTitle> | ||
|
||
<EmptyText> | ||
Veuillez vous abonner à des contributeurs dans la | ||
<br /> partie “Suggestions” | ||
</EmptyText> | ||
|
||
<EmptyButton>Choisir mes contributeurs</EmptyButton> | ||
</Wrapper> | ||
); | ||
|
||
export default Empty; |
8 changes: 8 additions & 0 deletions
8
src/app/settings/App/SubscriptionsScreen/Subscriptions.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,8 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import Subscriptions from './SubscriptionsScreen'; | ||
import SubscriptionsEmpty from './Empty'; | ||
|
||
storiesOf('screens/SubscriptionsScreen', module) | ||
.add('subcriptions', () => <Subscriptions />) | ||
.add('subcriptions empty', () => <SubscriptionsEmpty />); |
Oops, something went wrong.