refactor: add svgs to sub folder (#687)

This commit is contained in:
Dan Ditomaso
2025-07-03 07:10:12 -04:00
committed by GitHub
parent e01946a1e4
commit 87cd91b0f8
47 changed files with 49 additions and 16 deletions
@@ -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} />;
};