import React, { FC } from "react"; import { Link } from "react-router-dom"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell from "@material-ui/core/TableCell"; import TableContainer from "@material-ui/core/TableContainer"; import TableHead from "@material-ui/core/TableHead"; import TableRow from "@material-ui/core/TableRow"; import Paper from "@material-ui/core/Paper"; import { Header } from "../components/Header"; import { AvatarList } from "../components/AvatarList"; import { TicketVM } from "../VM/TicketVM"; import { getRemainingdays } from "../utils/methods"; import { Container, makeStyles, Theme, Grid, Typography, } from "@material-ui/core"; import { Timer } from "@material-ui/icons"; import PageLayout from "../layouts/PageLayout"; interface IProps { viewModel: TicketVM; } const useStyles = makeStyles((theme: Theme) => ({ root: { margin: theme.spacing(1), flexGrow: 1, }, table: { minWidth: 650, }, })); export const TicketPage: FC = ({ viewModel }) => { const { title, description, users, endingDate, project, status, category, impact, difficulty, } = viewModel; const daysToEnd: number = getRemainingdays(endingDate); // let notes: string = ""; const classes = useStyles(); const Content: FC = () => { return ( <>
In project: {" "} {project.title} Due in {daysToEnd} days
{/* */}
); }; return ( } content={} /> ); }; interface InfoProps { status: string; category: string; impact: string; difficulty: string; } const InfoTable: FC = (info: InfoProps) => { const classes = useStyles(); return ( Status Category Impact Difficulty {info.status} {info.category} {info.impact} {info.difficulty}
); };