diff --git a/src/App.tsx b/src/App.tsx index 3e3f3d3..77d4597 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,8 +13,12 @@ import "./style/thumbs.css"; import "./style/row.css"; import "./photos"; +const defaultViewMode: ViewMode = location.href.includes("resistants") + ? "photos" + : "map"; + export const App = () => { - const [viewMode, setViewMode] = React.useState("map"); + const [viewMode, setViewMode] = React.useState(defaultViewMode); return (