@riosst100/pwa-marketplace 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -0,0 +1 @@
1
+ export { default } from './sellerInformation';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import StoreItem from '@riosst100/pwa-marketplace/src/modules/seller/components/storeItem';
2
+ import SellerLocation from '../SellerLocation';
3
3
  import { Location, ShopAdd } from 'iconsax-react';
4
4
 
5
- const storeInformation = () => {
5
+ const SellerInformation = () => {
6
6
  return (
7
7
  <>
8
8
  <div class="flex flex-col items-start gap-[30px] px-[10px]">
@@ -100,18 +100,10 @@ const storeInformation = () => {
100
100
  </div>
101
101
  </div>
102
102
  </div>
103
- <div class="w-full flex flex-col items-start gap-[25px]">
104
- <div class="relative w-fit font-semibold text-[20px] tracking-[0] leading-[normal]">Our Store</div>
105
- <div class="w-full grid grid-cols-3 gap-4">
106
- <StoreItem />
107
- <StoreItem />
108
- <StoreItem />
109
- <StoreItem />
110
- </div>
111
- </div>
103
+ <SellerLocation />
112
104
  </div>
113
105
  </>
114
106
  )
115
107
  }
116
108
 
117
- export default storeInformation
109
+ export default SellerInformation;
@@ -0,0 +1 @@
1
+ export { default } from './sellerLocation';
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import SellerLocationItem from './sellerLocationItem';
3
+
4
+ const SellerLocation = () => {
5
+ return (
6
+ <>
7
+ <div class="w-full flex flex-col items-start gap-[25px]">
8
+ <div class="relative w-fit font-semibold text-[20px] tracking-[0] leading-[normal]">Our Store</div>
9
+ <div class="w-full grid grid-cols-3 gap-4">
10
+ <SellerLocationItem />
11
+ <SellerLocationItem />
12
+ <SellerLocationItem />
13
+ <SellerLocationItem />
14
+ </div>
15
+ </div>
16
+ </>
17
+ )
18
+ }
19
+
20
+ export default SellerLocation;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Location, Clock } from 'iconsax-react';
3
3
 
4
- const storeItem = () => {
4
+ const SellerLocationItem = () => {
5
5
  return (
6
6
  <>
7
7
  <div class="flex flex-col w-full items-start gap-[15px] p-[20px] relative rounded-[8px] border border-solid border-[#e6e9ea]">
@@ -25,4 +25,4 @@ const storeItem = () => {
25
25
  )
26
26
  }
27
27
 
28
- export default storeItem
28
+ export default SellerLocationItem;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import Content from './sellerPage';
3
+
4
+ const core = () => {
5
+ return (
6
+ <Content />
7
+ )
8
+ }
9
+
10
+ export default core;
@@ -0,0 +1 @@
1
+ export { default } from './sellerPage';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import Slider from '@riosst100/pwa-marketplace/src/components/commons/Slider';
3
3
  import Tabs from '@riosst100/pwa-marketplace/src/components/commons/Tabs';
4
- import AllProduct from '@riosst100/pwa-marketplace/src/modules/seller/components/allProduct';
5
- import StoreInformation from '@riosst100/pwa-marketplace/src/modules/seller/components/storeInformation';
6
- import Reviews from '@riosst100/pwa-marketplace/src/modules/seller/components/reviews';
4
+ import SellerProducts from '../SellerProducts';
5
+ import SellerInformation from '../SellerInformation';
6
+ import Reviews from '../SellerReview';
7
7
  import {
8
8
  Verify,
9
9
  Sms,
@@ -14,25 +14,25 @@ import {
14
14
  Star1,
15
15
  } from 'iconsax-react';
16
16
 
17
- const sellerPage = () => {
17
+ const SellerPage = () => {
18
18
  const dataTabs =
19
19
  [
20
20
  {
21
21
  id: 'product-tab',
22
22
  title: 'All Products',
23
- content: <AllProduct />,
23
+ content: <SellerProducts />
24
24
  },
25
25
  {
26
26
  id: 'store-information',
27
27
  title: 'Store Information',
28
- content: <StoreInformation />,
28
+ content: <SellerInformation />
29
29
  },
30
30
  {
31
31
  id: 'reviews',
32
32
  title: 'Reviews',
33
- content: <Reviews />,
34
- },
35
- ]
33
+ content: <Reviews />
34
+ }
35
+ ];
36
36
  return (
37
37
  <div className=' py-8'>
38
38
  <Slider rootClassname='mb-[30px]' />
@@ -117,4 +117,4 @@ const sellerPage = () => {
117
117
  )
118
118
  }
119
119
 
120
- export default sellerPage
120
+ export default SellerPage;
@@ -0,0 +1 @@
1
+ export { default } from './sellerProducts';
@@ -3,9 +3,9 @@ import ProductItem from '@riosst100/pwa-marketplace/src/components/ProductItem';
3
3
  import Filter from '@riosst100/pwa-marketplace/src/components/Filter';
4
4
  import Search from '@riosst100/pwa-marketplace/src/components/Search';
5
5
  import SortBy from '@riosst100/pwa-marketplace/src/components/SortBy';
6
- import Pagination from '@riosst100/pwa-marketplace/src/components/Pagination';
6
+ import Pagination from '..//Pagination';
7
7
 
8
- const allProduct = () => {
8
+ const SellerProducts = () => {
9
9
  return (
10
10
  <>
11
11
  <div className='w-full mb-[30px]'>
@@ -43,4 +43,4 @@ const allProduct = () => {
43
43
  )
44
44
  }
45
45
 
46
- export default allProduct
46
+ export default SellerProducts;
@@ -0,0 +1 @@
1
+ export { default } from './sellerReview';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import ReviewItem from '@riosst100/pwa-marketplace/src/components/ReviewItem';
3
- import Pagination from '@riosst100/pwa-marketplace/src/components/Pagination';
2
+ import SellerReviewItem from '../SellerReviewItem';
3
+ import Pagination from '../Pagination';
4
4
  import { Star1 } from 'iconsax-react';
5
5
 
6
- const reviews = () => {
6
+ const SellerReview = () => {
7
7
  return (
8
8
  <>
9
9
  <div className='w-full flex items-start gap-[30px] '>
@@ -124,13 +124,13 @@ const reviews = () => {
124
124
  </div>
125
125
  <div className='flex flex-col w-full'>
126
126
  <div className='flex flex-col w-full items-start gap-[20px] relative mb-[30px]'>
127
- <ReviewItem />
128
- <ReviewItem />
129
- <ReviewItem />
130
- <ReviewItem />
131
- <ReviewItem />
132
- <ReviewItem />
133
- <ReviewItem />
127
+ <SellerReviewItem />
128
+ <SellerReviewItem />
129
+ <SellerReviewItem />
130
+ <SellerReviewItem />
131
+ <SellerReviewItem />
132
+ <SellerReviewItem />
133
+ <SellerReviewItem />
134
134
  </div>
135
135
  <div className='pagination-container w-full flex justify-center'>
136
136
  <Pagination />
@@ -141,4 +141,4 @@ const reviews = () => {
141
141
  )
142
142
  }
143
143
 
144
- export default reviews;
144
+ export default SellerReview;
@@ -0,0 +1 @@
1
+ export { default } from './sellerReviewItem';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Star1 } from 'iconsax-react';
3
3
 
4
- const ReviewItem = () => {
4
+ const SellerReviewItem = () => {
5
5
  return (
6
6
  <>
7
7
  <div class="flex flex-col items-start gap-[10px] p-[25px] relative self-stretch w-full flex-[0_0_auto] bg-white rounded-[6px] border border-solid border-[#e6e9ea]">
@@ -58,4 +58,4 @@ const ReviewItem = () => {
58
58
  )
59
59
  }
60
60
 
61
- export default ReviewItem;
61
+ export default SellerReviewItem;
package/src/intercept.js CHANGED
@@ -91,9 +91,9 @@ module.exports = targets => {
91
91
  },
92
92
  {
93
93
  exact: true,
94
- name: "Seller Page",
95
- pattern: "/sellerpage",
96
- path: require.resolve("./modules/seller/index.js"),
94
+ name: "SellerPage",
95
+ pattern: "/seller/:urlKey",
96
+ path: require.resolve("./components/SellerPage/index.js"),
97
97
  authed: false,
98
98
  },
99
99
  ];
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import Content from '@riosst100/pwa-marketplace/src/modules/seller/sellerPage';
3
-
4
- const core = () => {
5
- return (
6
- <Content />
7
- )
8
- }
9
-
10
- export default core;
@@ -1 +0,0 @@
1
- export { default } from '@riosst100/pwa-marketplace/src/modules/seller/core';