Skip to content

Instantly share code, notes, and snippets.

@wojciech-bilicki
Created September 2, 2017 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wojciech-bilicki/7bd73a59cce2fda16d67179208ff0300 to your computer and use it in GitHub Desktop.
Save wojciech-bilicki/7bd73a59cce2fda16d67179208ff0300 to your computer and use it in GitHub Desktop.
#64 HeroCard.stories.jsx
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