🎈 perf(我的): 隐藏未开发的功能

This commit is contained in:
xuan 2022-12-10 14:53:11 +08:00
parent af1aad934d
commit e38b6da438

View File

@ -208,7 +208,7 @@ const UserInfo: FC = () => {
<View className={styles.layoutTitle}></View>
<View className={styles['grid-container']}>
{Features.map((item, key) => {
return <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard>
return item.path ? <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard> : null
})}
</View>
</LayoutBlock>
@ -218,7 +218,7 @@ const UserInfo: FC = () => {
<View className={styles.layoutTitle}></View>
<View className={styles['grid-container']}>
{Coloring.map((item, key) => {
return <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard>
return item.path ? <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard> : null
})}
</View>
</LayoutBlock>
@ -228,7 +228,7 @@ const UserInfo: FC = () => {
<View className={styles.layoutTitle}></View>
<View className={styles['grid-container']}>
{Statistics.map((item, key) => {
return <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard>
return item.path ? <IconCard key={key} iconName={item.iconName} title={item.name} onClick={() => handleClickIconCard(item)}></IconCard> : null
})}
</View>
</LayoutBlock>