fix: import logo via Vite asset pour résoudre la résolution d'URL dev/prod
This commit is contained in:
BIN
frontend/src/assets/logo-radarsargasses971.png
Normal file
BIN
frontend/src/assets/logo-radarsargasses971.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import Map, { Layer, Marker, NavigationControl, Source } from 'react-map-gl/maplibre';
|
||||
import 'maplibre-gl/dist/maplibre-gl.css';
|
||||
import { api } from '../../api/client';
|
||||
import logoUrl from '../../assets/logo-radarsargasses971.png';
|
||||
import './SargassesMap.css';
|
||||
|
||||
const INITIAL_VIEW = { longitude: -61.55, latitude: 16.25, zoom: 9 };
|
||||
@@ -271,7 +272,7 @@ export default function SargassesMap({ onSpotSelect, selectedSpotId, activeStep,
|
||||
>
|
||||
<NavigationControl position="bottom-right" />
|
||||
|
||||
<img src="/assets/logo-radarsargasses971.png" className="smap-logo" alt="Radar Sargasses 971" />
|
||||
<img src={logoUrl} className="smap-logo" alt="Radar Sargasses 971" />
|
||||
|
||||
{dataDate && (
|
||||
<div className="smap-freshness">
|
||||
|
||||
Reference in New Issue
Block a user