Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/components/icons/DeviceHubIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) 2025, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

import DeviceHub from '@material-symbols/svg-400/outlined/device_hub.svg?react';
import { useTheme } from '@mui/material';

interface DeviceHubProps {
style?: React.CSSProperties;
}
export function DeviceHubIcon({ style }: DeviceHubProps) {
const theme = useTheme();

const defaultStyle: React.CSSProperties = {
width: 15,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 15 ? why not 24 has other icons ????

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default value I chose based on the Figma, you can always override it.
For the other components, the value was set based on Figma with no option to override it.

height: 15,
fill: theme.palette.text.primary,
};
return <DeviceHub style={{ ...defaultStyle, ...style }} />;
}
1 change: 1 addition & 0 deletions src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*/
export { LeftPanelOpenIcon } from './LeftPanelOpenIcon';
export { LeftPanelCloseIcon } from './LeftPanelCloseIcon';
export { DeviceHubIcon } from './DeviceHubIcon';
Loading