Amber Shopify Project created using ReactJS+React-Redux with GraphQL API integration. Storefront Shopify API: https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Collection.jsx 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { useEffect } from 'react'
  2. import { useParams } from 'react-router-dom'
  3. import PageTitle from '../components/PageTitle'
  4. import Filter from '../components/Filter'
  5. import ProductList from '../components/ProductList'
  6. import { Box } from '@mui/material'
  7. import SocialMedia from '../components/SocialMedia'
  8. import Feature from '../components/Feature'
  9. import { useSelector, useDispatch } from 'react-redux'
  10. import { fetchProducts } from '../redux/slices/productSlice'
  11. import image from "../assets/images/titleBg.jpg"
  12. import CategoryList from '../components/CategoryList'
  13. import CollectionList from '../components/CollectionList/CollectionList'
  14. const Collection = () => {
  15. let { pid } = useParams();
  16. return (
  17. <>
  18. <PageTitle title={`AMBER ${pid}`} image={image} />
  19. <CategoryList productType={pid}/>
  20. <CollectionList productType={pid}/>
  21. <Box sx={{
  22. px: {
  23. xs: 2,
  24. md: 5,
  25. lg: 5
  26. },
  27. mb: {
  28. xs: 0,
  29. md: 5,
  30. lg: 10
  31. }
  32. }}>
  33. </Box>
  34. <SocialMedia />
  35. <Feature />
  36. </>
  37. )
  38. }
  39. export default Collection