From 90f326f0b82fcc5f164af3b9f3bba619ed757a59 Mon Sep 17 00:00:00 2001 From: Hyrum Gomez Date: Wed, 3 Jul 2019 15:18:38 -0600 Subject: [PATCH] Reverting to how buttons were --- .../template/src/components/ButtonLink.js | 11 --------- .../src/components/ButtonLink.stories.js | 7 ------ .../components/example/FrontierDocsCard.js | 12 ++++++---- .../src/components/example/LearnReactCard.js | 23 ++++++++++++++----- .../src/components/example/ZionCard.js | 16 +++++++++---- 5 files changed, 37 insertions(+), 32 deletions(-) delete mode 100644 packages/react-scripts/template/src/components/ButtonLink.js delete mode 100644 packages/react-scripts/template/src/components/ButtonLink.stories.js diff --git a/packages/react-scripts/template/src/components/ButtonLink.js b/packages/react-scripts/template/src/components/ButtonLink.js deleted file mode 100644 index a1be645a37..0000000000 --- a/packages/react-scripts/template/src/components/ButtonLink.js +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' -import { Button } from '@fs/zion-ui' - -export default function ButtonLink({ href, ...props }) { - return ) diff --git a/packages/react-scripts/template/src/components/example/LearnReactCard.js b/packages/react-scripts/template/src/components/example/LearnReactCard.js index b43ade1f1f..f27ae577d4 100644 --- a/packages/react-scripts/template/src/components/example/LearnReactCard.js +++ b/packages/react-scripts/template/src/components/example/LearnReactCard.js @@ -1,6 +1,5 @@ import React from 'react' -import { Card, CardMedia, CardActions, CardContent } from '@fs/zion-ui' -import ButtonLink from '../ButtonLink' +import { Button, Card, CardMedia, CardActions, CardContent } from '@fs/zion-ui' import ReactImage from './reactjs.jpg' const LearnReactCard = () => ( @@ -10,10 +9,22 @@ const LearnReactCard = () => (

Learn React

- React Docs - - Earn your badge - + + ) diff --git a/packages/react-scripts/template/src/components/example/ZionCard.js b/packages/react-scripts/template/src/components/example/ZionCard.js index 317dc4a38a..407a2e2144 100644 --- a/packages/react-scripts/template/src/components/example/ZionCard.js +++ b/packages/react-scripts/template/src/components/example/ZionCard.js @@ -1,6 +1,5 @@ import React from 'react' -import { Card, CardMedia, CardActions, CardContent } from '@fs/zion-ui' -import ButtonLink from '../ButtonLink' +import { Button, Card, CardMedia, CardActions, CardContent } from '@fs/zion-ui' import ZionImage from './zion.jpg' const ZionCard = () => ( @@ -15,8 +14,17 @@ const ZionCard = () => (

Zion is the place to go to find reusable components for your FamilySearch application.

- Components - Github + + )