diff --git a/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx b/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx index de0784d3..6d7927bf 100644 --- a/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx +++ b/src/renderer/components/maps-mangement-components/maps-playlists-panel.component.tsx @@ -13,6 +13,7 @@ import ReactTooltip from 'react-tooltip'; import { MapsDownloaderService } from "renderer/services/maps-downloader.service" import { BsmImage } from "../shared/bsm-image.component" import wipGif from "../../../../assets/images/gifs/wip.gif" +import { OsDiagnosticService } from "renderer/services/os-diagnostic.service" type Props = { version?: BSVersion @@ -22,6 +23,7 @@ export function MapsPlaylistsPanel({version}: Props) { const mapsService = MapsManagerService.getInstance(); const mapsDownloader = MapsDownloaderService.getInstance(); + const osDiagnostic = OsDiagnosticService.getInstance(); const [tabIndex, setTabIndex] = useState(0); const [mapFilter, setMapFilter] = useState({}); @@ -29,7 +31,6 @@ export function MapsPlaylistsPanel({version}: Props) { const [playlistSearch, setPlaylistSearch] = useState(""); const [mapsLinked, setMapsLinked] = useState(false); const color = useThemeColor("first-color"); - const mapsRef = useRef(); useEffect(() => { @@ -86,7 +87,7 @@ export function MapsPlaylistsPanel({version}: Props) { Ajouté des maps {/* TODO TRANSLATE */} - {!!version && ( + {(!!version && osDiagnostic.isOnline) && ( {e.stopPropagation(); onClickLink(index)}}/>