Skip to content

Commit

Permalink
fix: pdp and quick view addToShoppingList issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Jan 9, 2023
1 parent 6b93818 commit 247486f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,13 @@ const DetailPagination = ({

<IconButton
onClick={handleBeforePage}
disabled={arrived === 'toLeft' || loading}
disabled={totalCount <= 1 || arrived === 'toLeft' || loading}
>
<NavigateBeforeIcon />
</IconButton>
<IconButton
onClick={handleNextPage}
disabled={arrived === 'toRight' || loading}
disabled={totalCount <= 1 || arrived === 'toRight' || loading}
>
<NavigateNextIcon />
</IconButton>
Expand Down
5 changes: 4 additions & 1 deletion apps/storefront/src/pages/pdp/PDP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ const PDP = ({
<Button
onClick={() => gotoShoppingDetail(id)}
variant="text"
sx={{
color: '#ffffff',
}}
>
view shoppping list
view shopping list
</Button>
</Box>
)
Expand Down

0 comments on commit 247486f

Please sign in to comment.