fixing bugs in rule editing

This commit is contained in:
Hari Krishna
2024-06-13 09:54:50 +00:00
committed by satti-hari-krishna-reddy
parent 809fc2c202
commit e90b698f84
3 changed files with 35 additions and 21 deletions
+2 -5
View File
@@ -8,12 +8,9 @@ const EditComponent = ({ ruleName, description, content, setContent, lastEdited,
};
return (
<Box sx={{ p: 2, border: '1px solid #ccc', borderRadius: 2, width: '100%' }}>
<Box sx={{ p: 2, border: '1px solid #ccc', borderRadius: 2, height: '100%', width: '100%', marginTop:'30px'}}>
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<Typography variant="body2" style={{ marginTop: '2%' }}>{ruleName}</Typography>
<Box sx={{ display: 'flex', alignItems: 'center' }}>
<Switch checked={true} />
</Box>
<Typography variant="h6">{ruleName}</Typography>
</Box>
<Typography variant="body2" style={{ marginTop: '2%' }}>
{description}