Skip to content

Commit

Permalink
removes getEcommerceItems method from example
Browse files Browse the repository at this point in the history
  • Loading branch information
lysy-vlc committed Jan 24, 2024
1 parent 8ea5230 commit 26cd448
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions example/src/pages/ECommercePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,6 @@ const ECommercePage: FunctionComponent = () => {
eCommerce.ecommerceProductDetailView([product])
}

const handleGetEcommerceItems = async () => {
const ecommerceItems = await eCommerce.getEcommerceItems()
console.log(ecommerceItems)
enqueueSnackbar(`eCommerce.getEcommerceItems()`, {
variant: 'success'
})
}

return (
<Grid container spacing={4}>
<Grid xs={12} sm={7} item>
Expand Down Expand Up @@ -317,25 +309,6 @@ const ECommercePage: FunctionComponent = () => {
</Paper>
</Grid>

<Grid item sm={12}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column'
}}
>
<Box sx={{ display: 'flex', justifyContent: 'flex-end' }}>
<Button
variant='contained'
onClick={handleGetEcommerceItems}
sx={{ ml: 1 }}
>
Get eCommerceItems
</Button>
</Box>
</Paper>
</Grid>
<ProductDetailView
product={selectedProduct}
isOpen={productDetailViewOpen}
Expand Down

0 comments on commit 26cd448

Please sign in to comment.