fix: moved all svgs into public / dist folder (#615)
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
|
||||
@@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user