core: rp: fix wrong contest status count (#530)

This commit is contained in:
panda authored and GitHub committed 2023-03-06 23:10:45 +08:00
1 parent 2731d4ba3a
commit 4df9527eac
7 files changed
+20 -5

No files matched your search

@@ -85,7 +85,11 @@ export default function ScratchpadContainer() {
{Object.keys(pages).map((key) => {
const Component = pages[key].icon;
return (
<div key={key} className={key === ui.activePage ? 'scratchpad__tab-active' : ''} onClick={() => switchToPage(key)}>
<div
key={key}
className={`scratchpad__tabicon-${key}${key === ui.activePage ? ' scratchpad__tab-active' : ''}`}
onClick={() => switchToPage(key)}
>
<Component />
</div>
);