Skip to content

Commit

Permalink
feat(SubscribeToContributors): added user name atom
Browse files Browse the repository at this point in the history
  • Loading branch information
newick authored and JalilArfaoui committed Sep 6, 2019
1 parent ae15839 commit 934859a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/atoms/UserName/UserName.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text } from '@storybook/addon-knobs';
import UserName from './UserName';
import Faker from 'faker';

const defaultUserName = Faker.name.findName();

storiesOf('atoms/UserName', module)
.addDecorator(withKnobs)
.add('normal', () => <UserName>{text('content', defaultUserName)}</UserName>);
7 changes: 7 additions & 0 deletions src/components/atoms/UserName/UserName.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styled from 'styled-components';

export default styled.h3`
margin: 0;
font-size: 17px;
color: ${props => props.theme.activeColor};
`;

0 comments on commit 934859a

Please sign in to comment.