move hover to stack
This commit is contained in:
1 parent
69f39e76a0
commit
7d3ea8ac19
1 file changed
+12
-11
@@ -28,17 +28,6 @@ const StatusPagesTable = ({ data }) => {
|
|||||||
navigate(url);
|
navigate(url);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getCellSx: (row) => {
|
|
||||||
return {
|
|
||||||
...(row.isPublished && {
|
|
||||||
"&.MuiTableCell-root:hover": {
|
|
||||||
backgroundColor: `${theme.palette.primary.light}`,
|
|
||||||
cursor: "pointer",
|
|
||||||
borderRadius: 1,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
},
|
|
||||||
render: (row) => {
|
render: (row) => {
|
||||||
const content = row.isPublished ? `/${row.url}` : "Unpublished";
|
const content = row.isPublished ? `/${row.url}` : "Unpublished";
|
||||||
return (
|
return (
|
||||||
@@ -46,6 +35,18 @@ const StatusPagesTable = ({ data }) => {
|
|||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(2)}
|
||||||
|
paddingLeft={theme.spacing(2)}
|
||||||
|
paddingRight={theme.spacing(2)}
|
||||||
|
borderRadius={theme.spacing(4)}
|
||||||
|
sx={{
|
||||||
|
...(row.isPublished && {
|
||||||
|
":hover": {
|
||||||
|
backgroundColor: `${theme.palette.primary.light}`,
|
||||||
|
cursor: "pointer",
|
||||||
|
borderRadius: 1,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Typography>{content}</Typography>
|
<Typography>{content}</Typography>
|
||||||
{row.isPublished && <ArrowOutwardIcon />}
|
{row.isPublished && <ArrowOutwardIcon />}
|
||||||
|
|||||||
Reference in new issue
Block a user