refactor: setting page

This commit is contained in:
GyDi
2022-01-16 03:22:37 +08:00
parent d6c3bc57c0
commit a3a3db6abb
5 changed files with 38 additions and 46 deletions

View File

@@ -0,0 +1,19 @@
import React from "react";
import { List, ListItem, ListSubheader, styled } from "@mui/material";
export const SettingItem = styled(ListItem)(() => ({
paddingTop: 5,
paddingBottom: 5,
}));
export const SettingList: React.FC<{
title: string;
}> = (props) => (
<List>
<ListSubheader sx={{ background: "transparent" }} disableSticky>
{props.title}
</ListSubheader>
{props.children}
</List>
);