@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 +1 -1
- package/src/components/SellerInformation/index.js +1 -0
- package/src/{modules/seller/components/storeInformation.js → components/SellerInformation/sellerInformation.js} +4 -12
- package/src/components/SellerLocation/index.js +1 -0
- package/src/components/SellerLocation/sellerLocation.js +20 -0
- package/src/{modules/seller/components/storeItem/index.js → components/SellerLocation/sellerLocationItem.js} +2 -2
- package/src/components/SellerPage/core.js +10 -0
- package/src/components/SellerPage/index.js +1 -0
- package/src/{modules/seller → components/SellerPage}/sellerPage.js +10 -10
- package/src/components/SellerProducts/index.js +1 -0
- package/src/{modules/seller/components/allProduct.js → components/SellerProducts/sellerProducts.js} +3 -3
- package/src/components/SellerReview/index.js +1 -0
- package/src/{modules/seller/components/reviews.js → components/SellerReview/sellerReview.js} +11 -11
- package/src/components/SellerReviewItem/index.js +1 -0
- package/src/components/{ReviewItem/index.js → SellerReviewItem/sellerReviewItem.js} +2 -2
- package/src/intercept.js +3 -3
- package/src/modules/seller/core.js +0 -10
- package/src/modules/seller/index.js +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './sellerInformation';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import SellerLocation from '../SellerLocation';
|
|
3
3
|
import { Location, ShopAdd } from 'iconsax-react';
|
|
4
4
|
|
|
5
|
-
const
|
|
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
|
-
<
|
|
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
|
|
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
|
|
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
|
|
28
|
+
export default SellerLocationItem;
|
|
@@ -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
|
|
5
|
-
import
|
|
6
|
-
import Reviews from '
|
|
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
|
|
17
|
+
const SellerPage = () => {
|
|
18
18
|
const dataTabs =
|
|
19
19
|
[
|
|
20
20
|
{
|
|
21
21
|
id: 'product-tab',
|
|
22
22
|
title: 'All Products',
|
|
23
|
-
content: <
|
|
23
|
+
content: <SellerProducts />
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
id: 'store-information',
|
|
27
27
|
title: 'Store Information',
|
|
28
|
-
content: <
|
|
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
|
|
120
|
+
export default SellerPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './sellerProducts';
|
package/src/{modules/seller/components/allProduct.js → components/SellerProducts/sellerProducts.js}
RENAMED
|
@@ -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 '
|
|
6
|
+
import Pagination from '..//Pagination';
|
|
7
7
|
|
|
8
|
-
const
|
|
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
|
|
46
|
+
export default SellerProducts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './sellerReview';
|
package/src/{modules/seller/components/reviews.js → components/SellerReview/sellerReview.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Pagination from '
|
|
2
|
+
import SellerReviewItem from '../SellerReviewItem';
|
|
3
|
+
import Pagination from '../Pagination';
|
|
4
4
|
import { Star1 } from 'iconsax-react';
|
|
5
5
|
|
|
6
|
-
const
|
|
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
|
-
<
|
|
128
|
-
<
|
|
129
|
-
<
|
|
130
|
-
<
|
|
131
|
-
<
|
|
132
|
-
<
|
|
133
|
-
<
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
95
|
-
pattern: "/
|
|
96
|
-
path: require.resolve("./
|
|
94
|
+
name: "SellerPage",
|
|
95
|
+
pattern: "/seller/:urlKey",
|
|
96
|
+
path: require.resolve("./components/SellerPage/index.js"),
|
|
97
97
|
authed: false,
|
|
98
98
|
},
|
|
99
99
|
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@riosst100/pwa-marketplace/src/modules/seller/core';
|