update icon history

This commit is contained in:
2023-06-07 09:27:02 +07:00
parent 7a83409028
commit ff3ac11071
5 changed files with 30 additions and 24 deletions

View File

@@ -27,6 +27,7 @@ import {
Menu, Menu,
ButtonGroup, ButtonGroup,
Grid, Grid,
Tooltip,
} from '@mui/material'; } from '@mui/material';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
@@ -378,7 +379,7 @@ export default function PlanList() {
</Button> </Button>
)} )}
</TableCell> </TableCell>
<TableCell align="center"> <TableCell align="right">
<Button <Button
variant="outlined" variant="outlined"
color="success" color="success"
@@ -392,11 +393,13 @@ export default function PlanList() {
> >
{openEdit ? 'Save' : 'Edit'} {openEdit ? 'Save' : 'Edit'}
</Button> </Button>
</TableCell>
<TableCell>
<Tooltip title="History">
<Link to={`/corporate/${corporate_id}/benefits/${row.id}/history`}> <Link to={`/corporate/${corporate_id}/benefits/${row.id}/history`}>
<Button variant="outlined" color="primary" size="small" style={{marginLeft: "10px"}} startIcon={<HistoryIcon />}> <HistoryIcon />
History </Link>
</Button> </Tooltip>
</Link>
</TableCell> </TableCell>
</TableRow> </TableRow>
{/* COLLAPSIBLE ROW */} {/* COLLAPSIBLE ROW */}
@@ -824,7 +827,7 @@ export default function PlanList() {
<TableCell style={headStyle} align="center"> <TableCell style={headStyle} align="center">
Status Status
</TableCell> </TableCell>
<TableCell style={headStyle} align="center"> <TableCell style={headStyle} colSpan={2} align="center">
Action Action
</TableCell> </TableCell>
</TableRow> </TableRow>

View File

@@ -341,9 +341,7 @@ export default function Corporates() {
</Button> </Button>
</Link> </Link>
<Link to={`/corporate/${row.id}/corporate-history`}> <Link to={`/corporate/${row.id}/corporate-history`}>
<Button variant="outlined" color="primary" size="small" startIcon={<HistoryIcon />}> <HistoryIcon />
History
</Button>
</Link> </Link>
</Stack> </Stack>
</TableCell> </TableCell>

View File

@@ -27,6 +27,7 @@ import {
Menu, Menu,
ButtonGroup, ButtonGroup,
Grid, Grid,
Tooltip,
} from '@mui/material'; } from '@mui/material';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
@@ -444,11 +445,11 @@ export default function CorporatePlanList() {
)} )}
</TableCell> </TableCell>
<TableCell align="right"> <TableCell align="right">
<Link to={`/corporate/${corporate_id}/members/${row.id}/history`}> <Tooltip title="History">
<Button variant="outlined" color="primary" size="small" style={{marginLeft: "10px"}} startIcon={<HistoryIcon />}> <Link to={`/corporate/${corporate_id}/members/${row.id}/history`}>
History <HistoryIcon />
</Button> </Link>
</Link> </Tooltip>
</TableCell> </TableCell>
</TableRow> </TableRow>
{/* COLLAPSIBLE ROW */} {/* COLLAPSIBLE ROW */}

View File

@@ -27,6 +27,7 @@ import {
Menu, Menu,
ButtonGroup, ButtonGroup,
Grid, Grid,
Tooltip,
} from '@mui/material'; } from '@mui/material';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
@@ -363,11 +364,11 @@ export default function CorporatePlanList() {
)} )}
</TableCell> </TableCell>
<TableCell align="center"> <TableCell align="center">
<Tooltip title="History">
<Link to={`/corporate/${corporate_id}/plans/${row.id}/history`}> <Link to={`/corporate/${corporate_id}/plans/${row.id}/history`}>
<Button variant="outlined" color="primary" size="small" style={{marginLeft: "10px"}} startIcon={<HistoryIcon />}> <HistoryIcon />
History
</Button>
</Link> </Link>
</Tooltip>
</TableCell> </TableCell>
</TableRow> </TableRow>
{/* COLLAPSIBLE ROW */} {/* COLLAPSIBLE ROW */}

View File

@@ -29,6 +29,7 @@ import {
ButtonGroup, ButtonGroup,
Checkbox, Checkbox,
FormControlLabel, FormControlLabel,
Tooltip,
} from '@mui/material'; } from '@mui/material';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight'; import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
@@ -232,17 +233,19 @@ export default function List() {
</Button> </Button>
)} )}
</TableCell> </TableCell>
<TableCell align="right" width='25%'> <TableCell align="right" width='10%'>
<Link to={`/corporate/${corporate_id}/services/${row.service_code}`}> <Link to={`/corporate/${corporate_id}/services/${row.service_code}`}>
<Button variant="outlined" color="primary" size="small"> <Button variant="outlined" color="primary" size="small">
Config Config
</Button> </Button>
</Link> </Link>
<Link to={`/corporate/${corporate_id}/services/${row.id}/history`}> </TableCell>
<Button variant="outlined" color="primary" size="small" style={{marginLeft: "10px"}} startIcon={<HistoryIcon />}> <TableCell width='1%'>
History <Tooltip title="History">
</Button> <Link to={`/corporate/${corporate_id}/services/${row.id}/history`} >
</Link> <HistoryIcon/>
</Link>
</Tooltip>
</TableCell> </TableCell>
</TableRow> </TableRow>
{/* COLLAPSIBLE ROW */} {/* COLLAPSIBLE ROW */}
@@ -715,7 +718,7 @@ export default function List() {
<TableCell style={headStyle} align="right" width={30}> <TableCell style={headStyle} align="right" width={30}>
Status Status
</TableCell> </TableCell>
<TableCell style={headStyle} align="right" width={30}> <TableCell style={headStyle} align="center" width={30} colSpan={2}>
Action Action
</TableCell> </TableCell>
</TableRow> </TableRow>