Refactor Topic component to improve readability and maintainability
This commit is contained in:
parent
378abec5db
commit
556c589050
@ -105,6 +105,7 @@ export default function Topic({ styleName }) {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Box>
|
||||||
{topicList.map((item: any, index) => (
|
{topicList.map((item: any, index) => (
|
||||||
<Box>
|
<Box>
|
||||||
<Flex sx={{ width: "100%" }} gap="sm">
|
<Flex sx={{ width: "100%" }} gap="sm">
|
||||||
@ -169,12 +170,7 @@ export default function Topic({ styleName }) {
|
|||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
))}
|
))}
|
||||||
<LoadingOverlay
|
</Box>
|
||||||
visible={loading}
|
|
||||||
overlayBlur={3}
|
|
||||||
overlayOpacity={0}
|
|
||||||
keepMounted={true}
|
|
||||||
/>
|
|
||||||
</Drawer>
|
</Drawer>
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
className={styleName}
|
className={styleName}
|
||||||
@ -184,6 +180,20 @@ export default function Topic({ styleName }) {
|
|||||||
>
|
>
|
||||||
<IconClock size="1rem" />
|
<IconClock size="1rem" />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
|
<LoadingOverlay
|
||||||
|
style={{
|
||||||
|
height: "380px",
|
||||||
|
inset: "auto",
|
||||||
|
bottom: "0",
|
||||||
|
left: "0",
|
||||||
|
right: "0",
|
||||||
|
position: "fixed",
|
||||||
|
}}
|
||||||
|
visible={loading}
|
||||||
|
overlayBlur={3}
|
||||||
|
overlayOpacity={0}
|
||||||
|
keepMounted={true}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user