Created
September 2, 2017 08:12
-
-
Save wojciech-bilicki/7bd73a59cce2fda16d67179208ff0300 to your computer and use it in GitHub Desktop.
#64 HeroCard.stories.jsx
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
import React from 'react'; | |
import { storiesOf } from '@storybook/react'; | |
import HeroCard from './HeroCard'; | |
const hero = { | |
id: 7, | |
name: 'Loki', | |
true_name: 'Loki Laufeyson', | |
powers: [ | |
'increased lifespan', | |
'superhuman strength', | |
'astral projection', | |
'eldritch energy blast', | |
'telepathy', | |
'hypnosis', | |
'teleportation', | |
'immunity to physical injury' | |
], | |
place_of_birth: 'Jotunheim, Asgard', | |
citizenship: 'Realm of Asgard', | |
image: '../assets/portraits/loki.jpg', | |
comics: [], | |
description: | |
'Loki Laufeyson is the son of Queen Farbauti and King Laufey, leader of the Giants of Jotunheim. He was born small and was an embarrassment to his parents, and was segregated from other Giants.' | |
}; | |
storiesOf('HeroCard', module).add('It should render properly', () => | |
<HeroCard hero={hero} /> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment