add loaded page number

This commit is contained in:
monoid 2022-06-20 17:53:15 +09:00
parent d5b2aeb673
commit b0ff34f097

View File

@ -55,6 +55,10 @@ export const GalleryInfo = (props: GalleryProp) => {
gallery={`/search?${queryString}`} short />); gallery={`/search?${queryString}`} short />);
}) })
} }
<Typography variant="body1" sx={{
justifyContent: "center",
textAlign:"center"
}}>{state.documents.length} loaded...</Typography>
<Button onClick={()=>loadMore()} disabled={loadAll}>{loadAll ? "Load All" : "Load More"}</Button> <Button onClick={()=>loadMore()} disabled={loadAll}>{loadAll ? "Load All" : "Load More"}</Button>
</Box> </Box>
); );