From 81111395638f103b336c47d823be3763e01982e5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 22 May 2022 12:03:12 -0700 Subject: Use icon for info --- modern/src/main/StatusCard.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'modern/src/main/StatusCard.js') diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js index 10ea8a3f..b163c983 100644 --- a/modern/src/main/StatusCard.js +++ b/modern/src/main/StatusCard.js @@ -2,9 +2,10 @@ import React, { useState } from 'react'; import { useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { - makeStyles, Button, Card, CardContent, Typography, CardActions, CardHeader, IconButton, Avatar, Table, TableBody, TableRow, TableCell, TableContainer, + makeStyles, Card, CardContent, Typography, CardActions, CardHeader, IconButton, Avatar, Table, TableBody, TableRow, TableCell, TableContainer, } from '@material-ui/core'; import CloseIcon from '@material-ui/icons/Close'; +import PostAddIcon from '@material-ui/icons/PostAdd'; import ReplayIcon from '@material-ui/icons/Replay'; import PublishIcon from '@material-ui/icons/Publish'; import EditIcon from '@material-ui/icons/Edit'; @@ -40,6 +41,9 @@ const useStyles = makeStyles((theme) => ({ cell: { borderBottom: 'none', }, + actions: { + justifyContent: 'space-between', + }, })); const StatusRow = ({ name, content }) => { @@ -113,10 +117,10 @@ const StatusCard = ({ deviceId, onClose }) => { )} - - + + history.push(`/position/${position.id}`)} disabled={!position} color="secondary"> + + history.push('/replay')} disabled={!position}> -- cgit v1.2.3