Skip to content

Commit

Permalink
feat: increase assets limit to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
okorie2 committed Sep 22, 2023
1 parent 913d662 commit 7d31287
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function ChartsGrid(props: Props) {
const [enableButton, setEnableButton] = React.useState<boolean>(false);
const [loadedCharts, setLoadedCharts] = React.useState<any[]>([]);

const limit = 10;
const limit = 15;
//used over usestate to get current offset value in the IntersectionObserver api, as it is not updated in usestate.
const offset = useRef(0);
const charts = useStoreState(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function DatasetsGrid(props: Props) {
const [cardId, setCardId] = React.useState<string>("");
const [enableButton, setEnableButton] = React.useState<boolean>(false);
const [modalDisplay, setModalDisplay] = React.useState<boolean>(false);
const limit = 10;
const limit = 15;
//used over usestate to get current offset value in the IntersectionObserver api, as it is not updated in usestate.
const offset = useRef(0);
const [loadedDatasets, setLoadedDatasets] = React.useState<
Expand Down Expand Up @@ -172,7 +172,12 @@ export default function DatasetsGrid(props: Props) {
)}
<Box height={100} />

<div ref={observerTarget} />
<div
ref={observerTarget}
css={`
height: 10px;
`}
/>
<DeleteDatasetDialog
cardId={cardId}
enableButton={enableButton}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function ReportsGrid(props: Props) {
const [modalDisplay, setModalDisplay] = React.useState<boolean>(false);
const [enableButton, setEnableButton] = React.useState<boolean>(false);
const [loadedReports, setLoadedReports] = React.useState<ReportModel[]>([]);
const limit = 10;
const limit = 15;
//used over usestate to get current offset value in the IntersectionObserver api, as it is not updated in usestate.
const offset = useRef(0);
const reports = useStoreState(
Expand Down

0 comments on commit 7d31287

Please sign in to comment.