Commit 1286f346 authored by Jon Moore's avatar Jon Moore
Browse files

Adding in example storybook story

parent 31157880
......@@ -8,11 +8,11 @@ const ExampleCard = ({ title, description, image, uri, className }) => {
return (
<ExampleCardStyled className={className}>
<div className="cInner">
<div className="cTitle">{title}</div>
<Link to={uri} title={title}>
{title}
</Link>
<div className="cTitle">
<Link to={uri} title={title}>
{title}
</Link>
</div>
<p>{description}</p>
{image && <img src={image.asset.sys.uri} alt={image.altText} />}
</div>
......
......@@ -50,8 +50,8 @@ const ExampleListing = ({
<div key={idx} className="card">
<div className="cardPadding">
<ExampleCard
guid={entry.sys.id}
title={entry.entryTitle}
description={entry.entryDescription}
uri={entry.sys && entry.sys.uri}
/>
</div>
......
......@@ -6,7 +6,13 @@ import ExampleCard from '~/features/exampleListing/components/ExampleCard';
storiesOf('Features | Listings', module).add(
'Example card',
() => {
return <ExampleCard />;
return (
<ExampleCard
title="Example title"
description="Example description"
uri="/example-content/example-article"
/>
);
},
{
knobs: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment