change style

This commit is contained in:
Amirhossein Mahmoodi
2024-08-05 14:14:04 +03:30
parent 12f8313a56
commit e3a5d8bdb9

View File

@@ -44,20 +44,20 @@ function HideOrShowAll({ hideData, setHideData }) {
const allVisible = allValuesAre(hideData, true);
return (
<Box sx={{ mx: 2, my: 1, display: "flex", justifyContent: "space-between" }}>
<Box sx={{ my: 1, display: "flex" }}>
<Button
sx={{ flex: 1 }}
color="info"
disabled={allVisible}
variant="contained"
startIcon={<VisibilityIcon />}
onClick={handleShowAll}
>
نمایش همه
</Button>
<Button
sx={{ flex: 1 }}
color="error"
disabled={allHidden}
variant="contained"
startIcon={<VisibilityOffIcon />}
onClick={handleHideAll}
>