Persist gallery list state (#864)

This commit is contained in:
InfiniteTF 2020-10-18 23:21:38 +02:00 committed by GitHub
parent cf003a55bf
commit 80199f79f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,11 @@ import { GalleryList } from "./GalleryList";
const Galleries = () => (
<Switch>
<Route exact path="/galleries" component={GalleryList} />
<Route
exact
path="/galleries"
render={(props) => <GalleryList {...props} persistState />}
/>
<Route path="/galleries/:id/:tab?" component={Gallery} />
</Switch>
);