Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia-Lavrova committed Feb 5, 2021
1 parent 93217d8 commit 32be6e3
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,84 +12,82 @@ import Sidebar from 'components/Sidebar';
import MonumentPage from 'components/MonumentPage';
import RedirectWithZoom from 'components/RedirectWithZoom';

import { DEFAULT_ZOOM } from 'constants/map';

import './App.scss';

const App = () => (
<Router>
<main>
<Switch>
<Route path="/moscow">
<Redirect to={`/lat/55.744654/lon/37.624991/zoom/12`} />
<Redirect to="/lat/55.744654/lon/37.624991/zoom/12" />
</Route>

<Route path="/saint-petersburg">
<Redirect to={`/lat/59.935324/lon/30.314125/zoom/11`} />
<Redirect to="/lat/59.935324/lon/30.314125/zoom/11" />
</Route>

<Route path="/ekaterinburg">
<Redirect to={`/lat/56.839542/lon/60.633391/zoom/11`} />
<Redirect to="/lat/56.839542/lon/60.633391/zoom/11" />
</Route>

<Route path="/novosibirsk">
<Redirect to={`/lat/55.028348/lon/82.931337/zoom/11`} />
<Redirect to="/lat/55.028348/lon/82.931337/zoom/11" />
</Route>

<Route path="/nizhny-novgorod">
<Redirect to={`/lat/56.301011/lon/43.995229/zoom/10`} />
<Redirect to="/lat/56.301011/lon/43.995229/zoom/10" />
</Route>

<Route path="/kazan">
<Redirect to={`/lat/55.790216/lon/49.125194/zoom/12`} />
<Redirect to="/lat/55.790216/lon/49.125194/zoom/12" />
</Route>

<Route path="/samara">
<Redirect to={`/lat/53.188109/lon/50.110306/zoom/13`} />
<Redirect to="/lat/53.188109/lon/50.110306/zoom/13" />
</Route>

<Route path="/orenburg">
<Redirect to={`/lat/51.770342/lon/55.098720/zoom/13`} />
<Redirect to="/lat/51.770342/lon/55.098720/zoom/13" />
</Route>

<Route path="/arzamas">
<Redirect to={`/lat/55.386373/lon/43.817099/zoom/12`} />
<Redirect to="/lat/55.386373/lon/43.817099/zoom/12" />
</Route>

<Route path="/balakhna">
<Redirect to={`/lat/56.492938/lon/43.611212/zoom/12`} />
<Redirect to="/lat/56.492938/lon/43.611212/zoom/12" />
</Route>

<Route path="/bogorodsk">
<Redirect to={`/lat/56.101523/lon/43.516550/zoom/12`} />
<Redirect to="/lat/56.101523/lon/43.516550/zoom/12" />
</Route>

<Route path="/bolshoe-murashkino">
<Redirect to={`/lat/55.781787/lon/44.774134/zoom/12`} />
<Redirect to="/lat/55.781787/lon/44.774134/zoom/12" />
</Route>

<Route path="/vyksa">
<Redirect to={`/lat/55.318686/lon/42.186628/zoom/12`} />
<Redirect to="/lat/55.318686/lon/42.186628/zoom/12" />
</Route>

<Route path="/gorbatov">
<Redirect to={`/lat/56.131309/lon/43.058318/zoom/12`} />
<Redirect to="/lat/56.131309/lon/43.058318/zoom/12" />
</Route>

<Route path="/lyskovo">
<Redirect to={`/lat/56.037971/lon/45.0478428/zoom/12`} />
<Redirect to="/lat/56.037971/lon/45.0478428/zoom/12" />
</Route>

<Route path="/gorodets">
<Redirect to={`/lat/56.644823/lon/43.469353/zoom/12`} />
<Redirect to="/lat/56.644823/lon/43.469353/zoom/12" />
</Route>

<Route path="/dzerzhinsk">
<Redirect to={`/lat/56.238716/lon/43.461149/zoom/12`} />
<Redirect to="/lat/56.238716/lon/43.461149/zoom/12" />
</Route>

<Route path="/pavlovo">
<Redirect to={`/lat/55.963602/lon/43.070018/zoom/12`} />
<Redirect to="/lat/55.963602/lon/43.070018/zoom/12" />
</Route>

<Route path="/lat/:lat/lon/:lon/zoom/:zoom/:id?">
Expand Down

0 comments on commit 32be6e3

Please sign in to comment.