mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 02:46:28 +00:00
Merge pull request #1633 from RoboSats/fix-book-pagination
Some checks failed
Sync lnproxy relays / sync (push) Has been cancelled
Some checks failed
Sync lnproxy relays / sync (push) Has been cancelled
Fix book pagination
This commit is contained in:
commit
65fcb64533
@ -98,7 +98,7 @@ const BookTable = ({
|
||||
|
||||
const [paginationModel, setPaginationModel] = useState<GridPaginationModel>({
|
||||
pageSize: 0,
|
||||
page: 0,
|
||||
page: 1,
|
||||
});
|
||||
const [columnVisibilityModel, setColumnVisibilityModel] = useState<GridColumnVisibilityModel>({});
|
||||
const [fullscreen, setFullscreen] = useState(defaultFullscreen);
|
||||
@ -121,10 +121,10 @@ const BookTable = ({
|
||||
|
||||
useEffect(() => {
|
||||
setPaginationModel({
|
||||
pageSize: federation.loading && orders.length === 0 ? 0 : defaultPageSize,
|
||||
page: paginationModel.page,
|
||||
pageSize: defaultPageSize,
|
||||
page: paginationModel.page ?? 1,
|
||||
});
|
||||
}, [federationUpdatedAt, orders, defaultPageSize]);
|
||||
}, [defaultPageSize]);
|
||||
|
||||
const localeText = useMemo(() => {
|
||||
return {
|
||||
|
@ -65,7 +65,6 @@ const DepthChart: React.FC<DepthChartProps> = ({
|
||||
useEffect(() => {
|
||||
setCurrencyCode(fav.currency); // as selected in BookControl
|
||||
setCoordinatorFilter(fav.coordinator);
|
||||
console.log(fav.coordinator);
|
||||
}, [fav.currency, fav.coordinator]);
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user