Skip to content

Commit

Permalink
fix(web): stop using no longer available icons
Browse files Browse the repository at this point in the history
To know more,

  * expand_more: marella/material-symbols#40
  * SiWindow: simple-icons/simple-icons#10019
  • Loading branch information
dgdavid committed Sep 16, 2024
1 parent 89214a7 commit a5c43a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions web/src/components/layout/Icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import Edit from "@icons/edit.svg?component";
import EditSquare from "@icons/edit_square.svg?component";
import Error from "@icons/error.svg?component";
import ExpandAll from "@icons/expand_all.svg?component";
import ExpandMore from "@icons/expand_more.svg?component";
import Feedback from "@icons/feedback.svg?component";
import Folder from "@icons/folder.svg?component";
import FolderOff from "@icons/folder_off.svg?component";
Expand Down Expand Up @@ -84,7 +83,7 @@ import WifiOff from "@icons/wifi_off.svg?component";

// Icons from react-simple-icons

import { SiLinux, SiWindows } from "@icons-pack/react-simple-icons";
import { SiLinux } from "@icons-pack/react-simple-icons";

/**
* @typedef {string|number} IconSize
Expand All @@ -107,7 +106,6 @@ const icons = {
edit_square: EditSquare,
error: Error,
expand_all: ExpandAll,
expand_more: ExpandMore,
feedback: Feedback,
folder: Folder,
folder_off: FolderOff,
Expand Down Expand Up @@ -152,7 +150,6 @@ const icons = {
wifi_off: WifiOff,
// brand icons
linux_logo: SiLinux,
windows_logo: SiWindows,
};

const PREDEFINED_SIZES = ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl"];
Expand Down
6 changes: 4 additions & 2 deletions web/src/components/storage/DeviceSelectorTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,13 @@ const DeviceExtendedDetails = ({ item }: { item: PartitionSlot | StorageDevice }
if (!device.systems || device.systems.length === 0) return null;

const System = ({ system }) => {
const logo = /windows/i.test(system) ? "windows_logo" : "linux_logo";
const isWindows = /windows/i.test(system);

if (isWindows) return;

return (
<div>
<Icon name={logo} size="14" /> {system}
<Icon name="linux_logo" size="14" /> {system}
</div>
);
};
Expand Down

0 comments on commit a5c43a0

Please sign in to comment.