diff --git a/client/src/components/HorizontalCard.tsx b/client/src/components/HorizontalCard.tsx index 4ee8664..62a71ea 100644 --- a/client/src/components/HorizontalCard.tsx +++ b/client/src/components/HorizontalCard.tsx @@ -1,5 +1,11 @@ import React, { FC, MouseEvent } from "react"; import { Link } from "react-router-dom"; +import { makeStyles } from "@material-ui/core/styles"; +import Card from "@material-ui/core/Card"; +import CardActions from "@material-ui/core/CardActions"; +import CardContent from "@material-ui/core/CardContent"; +import Button from "@material-ui/core/Button"; +import Typography from "@material-ui/core/Typography"; import { getRemainingdays } from "../utils/methods"; interface IProps { @@ -9,47 +15,60 @@ interface IProps { link?: string; } +const useStyles = makeStyles({ + root: { + minWidth: 275 + }, + bullet: { + display: "inline-block", + margin: "0 2px", + transform: "scale(0.8)" + }, + title: { + fontSize: 14 + }, + pos: { + marginBottom: 12 + } +}); + export const HorizontalCard: FC = ({ title, remainingDays, link = "#", validateTicket }) => { + const classes = useStyles(); + const bull = ; + return ( -
  • -
    -
    -
    -
    -
    -
    - - {title ?? "Nothing to do"} - -
    -
    + + + + + {title ?? "Nothing to do"} + + + + + + Due{" "} + {remainingDays ? ( + getRemainingdays(remainingDays) + ) : ( - Due{" "} - {remainingDays ? ( - getRemainingdays(remainingDays) - ) : ( - - Too much 0 - - )}{" "} - days + Too much 0 -
    - - - check - - -
    -
    -
    -
    -
    -
  • + )}{" "} + days + + + + + + + ); }; diff --git a/client/src/components/ProjectList.tsx b/client/src/components/ProjectList.tsx index da5671e..2c5c406 100644 --- a/client/src/components/ProjectList.tsx +++ b/client/src/components/ProjectList.tsx @@ -44,27 +44,25 @@ export const ProjectList: FC = ({ projects }) => {
    -
      - {filteredTickets.length === 0 ? ( - - ) : ( - filteredTickets.map((t: Project) => ( - { - e.preventDefault(); - await put>( - `${Constants.ticketsURI}/${t.id}/closed`, - {} - ); - }} - /> - )) - )} -
    + {filteredTickets.length === 0 ? ( + + ) : ( + filteredTickets.map((t: Project) => ( + { + e.preventDefault(); + await put>( + `${Constants.ticketsURI}/${t.id}/closed`, + {} + ); + }} + /> + )) + )}
    );