perf: config fe

This commit is contained in:
archer
2023-07-19 11:17:08 +08:00
parent 47af8d1c3d
commit c46a37541c
10 changed files with 52 additions and 50 deletions

View File

@@ -174,7 +174,7 @@ const NumberSetting = ({ tableType }: { tableType: `${TableEnum}` }) => {
<Box flex={'0 0 50px'}>:</Box>
<Box>{userInfo?.username}</Box>
</Flex>
{feConfigs.show_userDetail && (
{feConfigs?.show_userDetail && (
<Box mt={6}>
<Flex alignItems={'center'}>
<Box flex={'0 0 50px'}>:</Box>
@@ -188,7 +188,7 @@ const NumberSetting = ({ tableType }: { tableType: `${TableEnum}` }) => {
</Box>
)}
</Card>
{feConfigs.show_userDetail && (
{feConfigs?.show_userDetail && (
<Card px={6} py={4}>
<Box fontSize={'xl'} fontWeight={'bold'}>
@@ -234,7 +234,7 @@ const NumberSetting = ({ tableType }: { tableType: `${TableEnum}` }) => {
)}
</Grid>
{feConfigs.show_userDetail && (
{feConfigs?.show_userDetail && (
<Card mt={4} px={[3, 6]} py={4}>
<Tabs
m={'auto'}