Skip to content
Snippets Groups Projects
Commit 880abeb1 authored by Sky Brewer's avatar Sky Brewer
Browse files

fix svg imports

parent 1821c923
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!562CE-3339: Add vite
Pipeline #205071 passed
...@@ -80,7 +80,14 @@ function MenuListItems({ menuItems, drawerOpen }) { ...@@ -80,7 +80,14 @@ function MenuListItems({ menuItems, drawerOpen }) {
const makeLink = (text, url, icon) => ({ text, url, icon }); const makeLink = (text, url, icon) => ({ text, url, icon });
const menuItemsAll = [ const menuItemsAll = [
makeLink("Records", "/records", <SettingsInputComponent />), makeLink("Records", "/records", <SettingsInputComponent />),
makeLink("IOCs", "/iocs", <CCCEControlSymbol />), makeLink(
"IOCs",
"/iocs",
<CCCEControlSymbol
width="25px"
height="25px"
/>
),
makeLink("IOC hosts", "/hosts", <Storage />), makeLink("IOC hosts", "/hosts", <Storage />),
makeLink("Log", "/jobs", <Assignment />) makeLink("Log", "/jobs", <Assignment />)
]; ];
......
import BatchDeployIcon from "./resources/batch/batch_deploy_icon.svg?react"; import BatchDeployIcon from "./resources/batch/batch_deploy_icon.svg?react";
import SvgIcon from "@mui/material/SvgIcon";
export function BatchDeploySymbol(props) { export function BatchDeploySymbol(props) {
return ( return <BatchDeployIcon {...props} />;
<SvgIcon {...props}>
<BatchDeployIcon />
</SvgIcon>
);
} }
import BatchUndeployIcon from "./resources/batch/batch_undeploy_icon.svg?react"; import BatchUndeployIcon from "./resources/batch/batch_undeploy_icon.svg?react";
import SvgIcon from "@mui/material/SvgIcon";
export function BatchUndeploySymbol(props) { export function BatchUndeploySymbol(props) {
return ( return <BatchUndeployIcon {...props} />;
<SvgIcon {...props}>
<BatchUndeployIcon />
</SvgIcon>
);
} }
import CcceControlSymbolGray from "./resources/control/ccce-control-symbol_757575.svg?react"; import CcceControlSymbolGray from "./resources/control/ccce-control-symbol_757575.svg?react";
import SvgIcon from "@mui/material/SvgIcon";
export function CCCEControlSymbol(props) { export function CCCEControlSymbol(props) {
return ( return <CcceControlSymbolGray {...props} />;
<SvgIcon {...props}>
<CcceControlSymbolGray />
</SvgIcon>
);
} }
import { ReactComponent as RocketLaunchBlack } from "./resources/rocket/rocket_launch_black_24dp.svg"; import { ReactComponent as RocketLaunchBlack } from "./resources/rocket/rocket_launch_black_24dp.svg?react";
import { Tooltip } from "@mui/material"; import { Tooltip } from "@mui/material";
import SvgIcon from "@mui/material/SvgIcon";
export function RocketLaunch(props) { export function RocketLaunch(props) {
return ( return (
<SvgIcon {...props}> <Tooltip title="Deployment">
<Tooltip title="Deployment"> <RocketLaunchBlack {...props} />
<RocketLaunchBlack /> </Tooltip>
</Tooltip>
</SvgIcon>
); );
} }
/// <reference types="vite-plugin-svgr/client" />
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment