|
@@ -91,25 +91,25 @@ export default function MenuBox(props) {
|
|
|
}
|
|
|
return (
|
|
|
<div className="menu-wrapper">
|
|
|
- <div className="children-menu-wrapper borderBottom">
|
|
|
+ <div className="children-menu-wrapper borderBottom no-children">
|
|
|
{menuBaseData.map((elm, index) => {
|
|
|
- if (index < 3) {
|
|
|
+ if (index < 4) {
|
|
|
return (
|
|
|
- <div onClick={() => switchProjects(elm)} className={clsx("title", platformName === elm.key && "active")} key={elm.key}>
|
|
|
- <img width="16" height="14" src={elm.iconData} style={{position: "relative", top: "-2px", marginRight: "5px",}} alt={""}/>
|
|
|
- {elm.name}{!page && platformName === elm.key && (<span className="new"><NewIcon /></span>)}
|
|
|
+ <div onClick={() => switchProjects(elm)} style={elm.styles} className={clsx("title", platformName === elm.key && "active")} key={elm.key}>
|
|
|
+ <img width="16" height="14" src={elm.iconData} style={{position: "relative", top: "-2px", marginRight: "5px", ...elm.imageStyle}} alt={""}/>
|
|
|
+ <span className="content">{elm.name}{!page && platformName === elm.key && (<span className="new"><NewIcon /></span>)}</span>
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
})}
|
|
|
</div>
|
|
|
- <div className="children-menu-wrapper" key={menuBaseData[3].key}>
|
|
|
- <div onClick={() => switchProjects(menuBaseData[3])} className={clsx("title", platformName === menuBaseData[3].key && "active")}>
|
|
|
- <img width="16" height="16" src={menuBaseData[3].iconData} style={{ position: "relative", top: "-2px", marginRight: "5px" }} alt={""}/>
|
|
|
- {menuBaseData[3].name}{!page && platformName === menuBaseData[3].key && (<span className="new"><NewIcon /></span>)}
|
|
|
+ <div className="children-menu-wrapper" key={menuBaseData[4].key}>
|
|
|
+ <div onClick={() => switchProjects(menuBaseData[4])} className={clsx("title", platformName === menuBaseData[4].key && "active")}>
|
|
|
+ <img width="16" height="16" src={menuBaseData[4].iconData} style={{ position: "relative", top: "-2px", marginRight: "5px" }} alt={""}/>
|
|
|
+ {menuBaseData[4].name}{!page && platformName === menuBaseData[4].key && (<span className="new"><NewIcon /></span>)}
|
|
|
</div>
|
|
|
<Row gutter={[24, 24]} className="box" style={{ marginTop: "5px" }}>
|
|
|
- {menuBaseData[3].menuList.length > 0 && menuBaseData[3].menuList.map((t) => icon(t))}
|
|
|
+ {menuBaseData[4].menuList.length > 0 && menuBaseData[4].menuList.map((t) => icon(t))}
|
|
|
</Row>
|
|
|
</div>
|
|
|
</div>
|