Optimize submenu in ToolsFramework. Optimize code

This commit is contained in:
2023-10-12 16:18:24 +08:00
parent bc82572fa8
commit 6a7cae8319
11 changed files with 214 additions and 134 deletions

View File

@@ -24,7 +24,7 @@ const Indicator: React.FC<IndicatorProps> = (props) => {
return (
<li
key={index}
className={'item center-box' + (index === current ? ' active' : '')}
className={`item center-box${index === current ? ' active' : ''}`}
onClick={handleClick(index)}
>
<div className={'dot'} />