chore(component): simplify code (#6056)
This commit is contained in:
1 parent
d81c017224
commit
fc9bf9cd8a
2 files changed
+12
-18
No files matched your search
+9
-13
@@ -8,19 +8,15 @@ export const WorkspaceDetailSkeleton = () => {
|
||||
<>
|
||||
<SettingHeader title={<Skeleton />} subtitle={<Skeleton />} />
|
||||
|
||||
{Array.from({ length: 3 })
|
||||
.fill(0)
|
||||
.map((_, index) => {
|
||||
return (
|
||||
<SettingWrapper title={<Skeleton />} key={index}>
|
||||
<SettingRow
|
||||
name={<Skeleton />}
|
||||
desc={<Skeleton />}
|
||||
spreadCol={false}
|
||||
></SettingRow>
|
||||
</SettingWrapper>
|
||||
);
|
||||
})}
|
||||
{Array.from({ length: 3 }, (_, index) => (
|
||||
<SettingWrapper title={<Skeleton />} key={index}>
|
||||
<SettingRow
|
||||
name={<Skeleton />}
|
||||
desc={<Skeleton />}
|
||||
spreadCol={false}
|
||||
></SettingRow>
|
||||
</SettingWrapper>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user