saleor-dashboard/src/storybook/stories/components/ExternalLink.tsx
Krzysztof Wolski a82de30309
Add circleci config and enhance our linters (#519)
* Add circleci config

* Season linting config

* Apply code style
2020-05-14 11:30:32 +02:00

18 lines
582 B
TypeScript

import ExternalLink from "@saleor/components/ExternalLink";
import { storiesOf } from "@storybook/react";
import React from "react";
import CardDecorator from "../../CardDecorator";
import Decorator from "../../Decorator";
storiesOf("Generics / External Link", module)
.addDecorator(CardDecorator)
.addDecorator(Decorator)
.add("default", () => (
<ExternalLink href="http://www.google.com">Link to google.com</ExternalLink>
))
.add("new tab", () => (
<ExternalLink href="http://www.google.com" target="_blank">
Link to google.com
</ExternalLink>
));