diff --git a/package.json b/package.json index e94e8d8..a32042c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "storybook": "start-storybook -p 6006 -s public", "build": "webpack --config webpack.config.js --mode production", "dev": "webpack --watch --config webpack.dev.config.js --mode development", - "linked": "npm run clean && npm run dev && npm run cp", + "linked": "npm run clean && mkdir -p dist && npm run cp && npm run dev && npm run cp", "buildw": "webpack --config webpack.config.js --watch", "build-storybook": "build-storybook -s public", "build-storybook-docs": "build-storybook -s public --docs", diff --git a/src/CustomAlert/index.js b/src/CustomAlert/index.js index c865775..5d5aa49 100644 --- a/src/CustomAlert/index.js +++ b/src/CustomAlert/index.js @@ -37,7 +37,7 @@ const CustomAlert = ({ ...props } ) => { CustomAlert.propTypes = { show: PropTypes.bool.isRequired, heading: PropTypes.string, - message: PropTypes.string, + message: PropTypes.any, vatiant: PropTypes.string, }; diff --git a/src/SimpleCard/index.js b/src/SimpleCard/index.js index 4286a1e..2b64bf3 100644 --- a/src/SimpleCard/index.js +++ b/src/SimpleCard/index.js @@ -23,15 +23,15 @@ const SimpleCard = props => { }; return ( - - + - {props.title} + {props.title} diff --git a/src/TranscriptCard/index.js b/src/TranscriptCard/index.js index 5fa0ff2..5e38872 100644 --- a/src/TranscriptCard/index.js +++ b/src/TranscriptCard/index.js @@ -1,91 +1,94 @@ -import React, { useState, useEffect } from "react"; -import PropTypes from "prop-types"; -import Card from "react-bootstrap/Card"; -import Row from "react-bootstrap/Row"; -import Col from "react-bootstrap/Col"; -import Button from "react-bootstrap/Button"; -import Badge from "react-bootstrap/Badge"; -import Alert from "react-bootstrap/Alert"; -import ProgressBar from "../ProgressBar"; -import Spinner from "react-bootstrap/Spinner"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import React from 'react'; +import PropTypes from 'prop-types'; +import Card from 'react-bootstrap/Card'; +import Row from 'react-bootstrap/Row'; +import Col from 'react-bootstrap/Col'; +import Button from 'react-bootstrap/Button'; +import Badge from 'react-bootstrap/Badge'; +import Alert from 'react-bootstrap/Alert'; +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, faExclamationTriangle, faPen -} from "@fortawesome/free-solid-svg-icons"; +} 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: ( -