refactor: add svgs to sub folder (#687)

This commit is contained in:
Dan Ditomaso authored and GitHub committed 2025-07-03 07:10:12 -04:00
1 parent e01946a1e4
commit 87cd91b0f8
47 files changed
+49 -16

No files matched your search

@@ -47,7 +47,7 @@ const hardwareModelToFilename: { [key: string]: string } = {
};
export const DeviceImage = ({ deviceType, className }: DeviceImageProps) => {
const getPath = (device: string) => `/${device}`;
const getPath = (device: string) => `/devices/${device}`;
const device = hardwareModelToFilename[deviceType] || "unknown.svg";
return <img className={className} src={getPath(device)} alt={device} />;
};