Remove sx prop (in prep for typing)

This commit is contained in:
Manav Rathi 2024-05-25 06:30:21 +05:30
parent ccd486f659
commit 0379216e05
No known key found for this signature in database

View file

@ -119,12 +119,11 @@ export const WatchFolder: React.FC<WatchFolderProps> = ({ open, onClose }) => {
onClose={onClose} onClose={onClose}
PaperProps={{ sx: { height: "448px", maxWidth: "414px" } }} PaperProps={{ sx: { height: "448px", maxWidth: "414px" } }}
> >
<DialogTitleWithCloseButton <Title_>
onClose={onClose} <DialogTitleWithCloseButton onClose={onClose}>
sx={{ "&&&": { padding: "32px 16px 16px 24px" } }} {t("WATCHED_FOLDERS")}
> </DialogTitleWithCloseButton>
{t("WATCHED_FOLDERS")} </Title_>
</DialogTitleWithCloseButton>
<DialogContent sx={{ flex: 1 }}> <DialogContent sx={{ flex: 1 }}>
<Stack spacing={1} p={1.5} height={"100%"}> <Stack spacing={1} p={1.5} height={"100%"}>
<WatchList {...{ watches, removeWatch }} /> <WatchList {...{ watches, removeWatch }} />
@ -149,6 +148,10 @@ export const WatchFolder: React.FC<WatchFolderProps> = ({ open, onClose }) => {
); );
}; };
const Title_ = styled("div")`
padding: 32px 16px 16px 24px;
`;
interface WatchList { interface WatchList {
watches: FolderWatch[]; watches: FolderWatch[];
removeWatch: (watch: FolderWatch) => void; removeWatch: (watch: FolderWatch) => void;