Skip to content

Commit

Permalink
disable scrolling on back
Browse files Browse the repository at this point in the history
  • Loading branch information
aashaykapoor committed Oct 7, 2024
1 parent b54423f commit bbc1705
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/app-explorer/src/systems/Block/screens/BlockScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const BlocksScreen = () => {
setCurrentPage(newPageNumber);
setCurrentCursor(newCursor);
if (newPageNumber === 1) {
router.push('/blocks');
router.push('/blocks', { scroll: false });
return;
}
router.push(`/blocks?page=${newPageNumber}&cursor=${newCursor}`, {
Expand All @@ -92,14 +92,15 @@ export const BlocksScreen = () => {
<LoadingWrapper
isLoading={loading}
loadingEl={
<>
{[...Array(10)].map((_, index) => (
<VStack gap={'22px'}>
{[...Array(11)].map((_, index) => (
<LoadingBox
key={index}
className="w-full h-[3.5rem] rounded-lg"
className="w-full h-[3.5rem] rounded-lg"
/>
))}
</>
<LoadingBox className="w-[250px] h-[2.9rem] rounded-lg ml-auto" />
</VStack>
}
regularEl={
data && (
Expand Down

0 comments on commit bbc1705

Please sign in to comment.