diff --git a/package-lock.json b/package-lock.json index 9fb4766..7b3cdf2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bbc/digital-paper-edit-storybook", - "version": "1.6.0", + "version": "1.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5887957..b878f36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bbc/digital-paper-edit-storybook", - "version": "1.6.0", + "version": "1.7.0", "description": "", "main": "index.js", "scripts": { diff --git a/src/ItemsContainer/stories/index.stories.js b/src/ItemsContainer/stories/index.stories.js index 6aaffee..1f0ff6d 100644 --- a/src/ItemsContainer/stories/index.stories.js +++ b/src/ItemsContainer/stories/index.stories.js @@ -15,7 +15,7 @@ storiesOf('ItemsContainer - Demo only (not published on NPM)', module) return ( diff --git a/src/TranscriptCard/index.js b/src/TranscriptCard/index.js index 5e38872..e052813 100644 --- a/src/TranscriptCard/index.js +++ b/src/TranscriptCard/index.js @@ -10,6 +10,7 @@ import { LinkContainer } from 'react-router-bootstrap'; import ProgressBar from '../ProgressBar'; import Spinner from 'react-bootstrap/Spinner'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; + import { faTrash, faCheck, @@ -18,75 +19,8 @@ import { } from '@fortawesome/free-solid-svg-icons'; const TranscriptCard = props => { - const statusSwitch = status => { - switch (status) { - case 'error': - return { - variant: 'danger', - icon: , - message: props.message, - text: 'Error', - title: props.title, - border: 'danger' - }; - case 'in-progress': - return { - variant: 'info', - text: 'In progress', - icon: ( -