fix broken storybook story

This commit is contained in:
Konstantin Schaper
2021-10-20 10:02:12 +02:00
parent 39e367bd70
commit 92e2093759
2 changed files with 2 additions and 12 deletions

View File

@@ -27,7 +27,6 @@ import { storiesOf } from "@storybook/react";
import CardColumnSmall from "./CardColumnSmall";
import Icon from "./Icon";
import styled from "styled-components";
import DateFromNow from "./DateFromNow";
const Wrapper = styled.div`
margin: 2rem;
@@ -51,11 +50,7 @@ storiesOf("CardColumnSmall", module)
link={link}
avatar={<Icon name="exchange-alt" className="fa-fw fa-lg" color="inherit" />}
contentLeft={<strong>Repository created</strong>}
contentRight={
<small>
<DateFromNow date={new Date(1634287231)} />
</small>
}
contentRight={<small>over 42 years ago</small>}
footer="New: scmadmin/spaceship"
/>
));

View File

@@ -2754,12 +2754,7 @@ exports[`Storyshots CardColumnSmall Task 1`] = `
</div>
<div>
<small>
<time
className="DateElement-sc-1schp8c-0 cinWxa"
title="1970-01-19 22:58:07"
>
over 51 years ago
</time>
over 42 years ago
</small>
</div>
</div>