fix: moved all svgs into public / dist folder (#615)

This commit is contained in:
Dan Ditomaso
2025-05-09 20:57:38 -04:00
committed by GitHub
parent b4ce6efd7b
commit 1180b9afb0
44 changed files with 2 additions and 7 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ export function ErrorPage({ error }: { error: Error }) {
<div className="hidden md:block md:max-w-64 lg:max-w-80 w-full aspect-suqare">
<img
src="/images/chirpy.svg"
src="chirpy.svg"
alt="Chirpy the Meshtastic error"
className="max-w-full h-auto"
/>
+1 -1
View File
@@ -47,7 +47,7 @@ const hardwareModelToFilename: { [key: string]: string } = {
};
export const DeviceImage = ({ deviceType, className }: DeviceImageProps) => {
const getPath = (device: string) => `/devices/${device}`;
const getPath = (device: string) => `/${device}`;
const device = hardwareModelToFilename[deviceType] || "unknown.svg";
return <img className={className} src={getPath(device)} alt={device} />;
};