Skip to content

Commit

Permalink
feat(SubscribeToContributors): added Avatar 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 53f4d16 commit d8bd27f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/atoms/Avatar/Avatar.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 Avatar from './Avatar';
import Faker from 'faker';

const defaultAvatar = Faker.image.avatar();

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

export default styled.img`
display: block
width: 89px;
height: 89px;
background-color: ${props => props.theme.contributorGrey};
border-radius: 50%;
`;

0 comments on commit d8bd27f

Please sign in to comment.