@riosst100/pwa-marketplace 2.0.8 → 2.1.0
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/.github/workflows/dependabot.yml +28 -28
- package/i18n/en_US.json +508 -509
- package/i18n/id_ID.json +508 -509
- package/package.json +18 -22
- package/src/componentOverrideMapping.js +1 -0
- package/src/components/AccountLayout/index.js +15 -0
- package/src/components/OrderDetail/components/itemsOrdered.js +128 -0
- package/src/components/OrderDetail/components/rmaList.js +114 -0
- package/src/components/OrderDetail/orderDetail.js +204 -0
- package/src/components/OrderDetail/orderDetailPage.js +14 -0
- package/src/components/RMAPage/RMACreate.js +238 -0
- package/src/components/RMAPage/RMACreatePage.js +14 -0
- package/src/components/RMAPage/RMADetail.js +318 -0
- package/src/components/RMAPage/RMADetailPage.js +14 -0
- package/src/components/RMAPage/RMAList.js +241 -0
- package/src/components/RMAPage/RMASelect.js +36 -0
- package/src/components/RMAPage/RMASelectPage.js +13 -0
- package/src/components/RMAPage/components/productItem.js +114 -0
- package/src/components/RMAPage/components/rmaList.js +250 -0
- package/src/components/RMAPage/index.js +14 -0
- package/src/components/RMAPage/orderRow.js +318 -0
- package/src/components/commons/Checkbox/index.js +57 -0
- package/src/components/commons/Collapsible/index.js +51 -0
- package/src/components/commons/Select/index.js +29 -0
- package/src/components/commons/Textfield/index.js +20 -0
- package/src/intercept.js +35 -0
- package/src/overwrites/venia-ui/lib/components/AccountMenu/accountMenu.js +2 -1
- package/src/overwrites/venia-ui/lib/components/Breadcrumbs/breadcrumbs.module.css +38 -0
- package/src/overwrites/venia-ui/lib/components/CartPage/ProductListing/product.js +9 -2
- package/src/overwrites/venia-ui/lib/components/Footer/footer.js +1 -1
- package/src/overwrites/venia-ui/lib/components/Header/header.js +12 -1
- package/src/overwrites/venia-ui/lib/components/Newsletter/newsletter.js +1 -1
- package/src/overwrites/venia-ui/lib/components/OrderHistoryPage/orderRow.js +11 -3
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.js +34 -3
- package/src/overwrites/venia-ui/lib/components/ProductFullDetail/productFullDetail.module.css +9 -0
- package/src/overwrites/venia-ui/lib/components/ProductImageCarousel/carousel.module.css +1 -1
- package/src/overwrites/venia-ui/lib/components/WishlistPage/actionMenu.ee.js +54 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/actionMenu.js +7 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/createWishlist.ee.js +129 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/createWishlist.js +3 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/createWishlist.module.css +63 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/index.js +14 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlist.js +193 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlist.module.css +78 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistConfirmRemoveProductDialog.js +84 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistConfirmRemoveProductDialog.module.css +20 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistEditFavoritesListDialog.js +96 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistEditFavoritesListDialog.module.css +22 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistItem.js +138 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistItem.module.css +78 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistItems.js +45 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistItems.module.css +9 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistListActionsDialog.js +61 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistMoreActionsDialog.js +84 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistMoreActionsDialog.module.css +19 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistPage.js +120 -0
- package/src/overwrites/venia-ui/lib/components/WishlistPage/wishlistPage.module.css +31 -0
package/package.json
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@riosst100/pwa-marketplace",
|
|
3
|
-
"author": "riosst100@gmail.com",
|
|
4
|
-
"version": "2.0
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"pwa-studio": {
|
|
7
|
-
"targets": {
|
|
8
|
-
"intercept": "src/intercept.js"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"axios": "^1.6.5",
|
|
13
|
-
"iconsax-react": "^0.0.8",
|
|
14
|
-
"react-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"private": false
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@riosst100/pwa-marketplace",
|
|
3
|
+
"author": "riosst100@gmail.com",
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"pwa-studio": {
|
|
7
|
+
"targets": {
|
|
8
|
+
"intercept": "src/intercept.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^1.6.5",
|
|
13
|
+
"iconsax-react": "^0.0.8",
|
|
14
|
+
"react-phone-number-input": "^3.3.9"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"private": false
|
|
18
|
+
}
|
|
@@ -64,4 +64,5 @@ module.exports = componentOverrideMapping = {
|
|
|
64
64
|
[`@magento/venia-ui/lib/components/Dialog/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/Dialog/index.js',
|
|
65
65
|
[`@magento/venia-ui/lib/components/OrderHistoryPage/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/OrderHistoryPage/index.js',
|
|
66
66
|
[`@magento/venia-ui/lib/components/TextArea/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/TextArea/index.js',
|
|
67
|
+
[`@magento/venia-ui/lib/components/WishlistPage/index.js`]: '@riosst100/pwa-marketplace/src/overwrites/venia-ui/lib/components/WishlistPage/index.js',
|
|
67
68
|
};
|
|
@@ -105,6 +105,21 @@ const AccountLayout = (props) => {
|
|
|
105
105
|
|
|
106
106
|
</Link>
|
|
107
107
|
</li>
|
|
108
|
+
<li className="list-none">
|
|
109
|
+
<Link
|
|
110
|
+
to="/return"
|
|
111
|
+
className={cn(
|
|
112
|
+
"text-[14px] font-medium p-2.5 block w-full hover_bg-gray-150 rounded-md",
|
|
113
|
+
activeMenu === '/return' ? 'bg-gray-150' : ''
|
|
114
|
+
)}
|
|
115
|
+
>
|
|
116
|
+
<FormattedMessage
|
|
117
|
+
id={'myaccount.return'}
|
|
118
|
+
defaultMessage={'Return Request'}
|
|
119
|
+
/>
|
|
120
|
+
|
|
121
|
+
</Link>
|
|
122
|
+
</li>
|
|
108
123
|
<li className="list-none">
|
|
109
124
|
<Link
|
|
110
125
|
to="/favorite-seller"
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
|
+
import { Link } from 'react-router-dom';
|
|
4
|
+
|
|
5
|
+
const itemsOrdered = () => {
|
|
6
|
+
const { formatMessage } = useIntl();
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<>
|
|
10
|
+
<div className='rounded-md border border-gray-100 pb-4'>
|
|
11
|
+
<div class="hidden md_block table-wrapper order-items w-full">
|
|
12
|
+
<table class="data table table-order-items w-full" id="my-orders-table" summary="Items Ordered">
|
|
13
|
+
<thead>
|
|
14
|
+
<tr className='bg-gray-150'>
|
|
15
|
+
<th class="col name text-left py-3 px-2.5 rounded-tl-md">Product Name</th>
|
|
16
|
+
<th class="col sku text-left py-3 px-2.5">SKU</th>
|
|
17
|
+
<th class="col price text-right py-3 px-2.5">Price</th>
|
|
18
|
+
<th class="col qty text-right py-3 px-2.5">Qty</th>
|
|
19
|
+
<th class="col subtotal text-right py-3 px-2.5 rounded-tr-md">Subtotal</th>
|
|
20
|
+
</tr>
|
|
21
|
+
</thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr id="order-item-row-1" className='border-b border-gray-150'>
|
|
24
|
+
<td class="col name text-left align-top py-3 px-2.5" data-th="Product Name">
|
|
25
|
+
<strong class="product name product-item-name">Iris Workout Top</strong>
|
|
26
|
+
<dl class="item-options">
|
|
27
|
+
<dt>Size</dt>
|
|
28
|
+
<dd>
|
|
29
|
+
XS
|
|
30
|
+
</dd>
|
|
31
|
+
<dt>Color</dt>
|
|
32
|
+
<dd>
|
|
33
|
+
Red
|
|
34
|
+
</dd>
|
|
35
|
+
</dl>
|
|
36
|
+
</td>
|
|
37
|
+
<td class="col sku align-top py-3 px-2.5" data-th="SKU">
|
|
38
|
+
WS03-XS-Red
|
|
39
|
+
</td>
|
|
40
|
+
<td class="col price text-right align-top py-3 px-2.5" data-th="Price">
|
|
41
|
+
<span class="price-including-tax" data-label="Incl. Tax">
|
|
42
|
+
<span class="cart-price">
|
|
43
|
+
<span class="price">$31.39</span> </span>
|
|
44
|
+
</span>
|
|
45
|
+
</td>
|
|
46
|
+
<td class="col qty text-right align-top py-3 px-2.5" data-th="Qty">
|
|
47
|
+
<ul class="items-qty">
|
|
48
|
+
<li class="item">
|
|
49
|
+
<span class="content">
|
|
50
|
+
1
|
|
51
|
+
</span>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</td>
|
|
55
|
+
<td class="col subtotal text-right align-top py-3 px-2.5" data-th="Subtotal">
|
|
56
|
+
<span class="price-including-tax" data-label="Incl. Tax">
|
|
57
|
+
<span class="cart-price">
|
|
58
|
+
<span class="price">$31.39</span> </span>
|
|
59
|
+
</span>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
</tbody>
|
|
63
|
+
<tfoot className='text-right'>
|
|
64
|
+
<tr class="subtotal">
|
|
65
|
+
<th colspan="4" class="mark py-1 px-2.5 pt-2.5" scope="row">
|
|
66
|
+
Subtotal
|
|
67
|
+
</th>
|
|
68
|
+
<td class="amount py-1 px-2.5 pt-2.5" data-th="Subtotal">
|
|
69
|
+
<span class="price">$31.39</span>
|
|
70
|
+
</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr class="shipping">
|
|
73
|
+
<th colspan="4" class="mark py-1 px-2.5" scope="row">
|
|
74
|
+
Shipping & Handling
|
|
75
|
+
</th>
|
|
76
|
+
<td class="amount py-1 px-2.5" data-th="Shipping & Handling">
|
|
77
|
+
<span class="price">$5.00</span>
|
|
78
|
+
</td>
|
|
79
|
+
</tr>
|
|
80
|
+
<tr class="totals-tax">
|
|
81
|
+
<th colspan="4" class="mark py-1 px-2.5" scope="row">
|
|
82
|
+
Tax
|
|
83
|
+
</th>
|
|
84
|
+
<td class="amount py-1 px-2.5" data-th="Tax">
|
|
85
|
+
<span class="price">$2.39</span>
|
|
86
|
+
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr class="grand_total">
|
|
89
|
+
<th colspan="4" class="mark py-1 px-2.5" scope="row">
|
|
90
|
+
<strong>Grand Total</strong>
|
|
91
|
+
</th>
|
|
92
|
+
<td class="amount py-1 px-2.5" data-th="Grand Total">
|
|
93
|
+
<strong><span class="price">$36.39</span></strong>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</tfoot>
|
|
97
|
+
</table>
|
|
98
|
+
</div>
|
|
99
|
+
<div className='md_hidden'>
|
|
100
|
+
<div class="orderDetails-orderTotalContainer-6or m-0 max-w-none min-w-none lg_m-auto lg_max-w-[25rem] lg_min-w-[22rem]">
|
|
101
|
+
<div className='product-list p-4'>
|
|
102
|
+
<div className='order-item flex flex-col gap-2 pb-4 border-b border-gray-150 even_pt-2'>
|
|
103
|
+
<Link to="/">
|
|
104
|
+
<span>
|
|
105
|
+
STAR WARS The Vintage Collection Luke Skywalker (Jedi Academy), The Book of Boba Fett 3.75-Inch Collectible Action Figures, Ages 4 and Up
|
|
106
|
+
</span>
|
|
107
|
+
</Link>
|
|
108
|
+
<div className='flex gap-2'>
|
|
109
|
+
<span className='font-semibold'>
|
|
110
|
+
1 X SGD 15.76
|
|
111
|
+
</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="p-4 pt-0 border-0 gap-xs grid py-xs rounded-none lg_border lg_border-solid lg_border-gray-100 lg_p-xs lg_rounded-md">
|
|
116
|
+
<div class="orderTotal-subTotal-Eyf gap-xs grid grid-cols-autoLast"><span>Subtotal</span><span><span>SGD</span><span> </span><span>15</span><span>.</span><span>76</span></span></div>
|
|
117
|
+
<div class="orderTotal-tax-DF0 gap-xs grid grid-cols-autoLast"><span>Tax</span><span><span>SGD</span><span> </span><span>0</span><span>.</span><span>00</span></span></div>
|
|
118
|
+
<div class="orderTotal-shipping-dXC gap-xs grid grid-cols-autoLast"><span>Shipping</span><span><span>SGD</span><span> </span><span>5</span><span>.</span><span>00</span></span></div>
|
|
119
|
+
<div class="orderTotal-total-s5t font-bold gap-xs grid grid-cols-autoLast"><span>Total</span><span><span>SGD</span><span> </span><span>20</span><span>.</span><span>76</span></span></div>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</>
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export default itemsOrdered
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
|
+
import { Link } from 'react-router-dom';
|
|
4
|
+
|
|
5
|
+
const rmaList = () => {
|
|
6
|
+
const { formatMessage } = useIntl();
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<>
|
|
10
|
+
<div className='rounded-md border border-gray-100'>
|
|
11
|
+
<div class="hidden md_block table-wrapper order-items w-full">
|
|
12
|
+
<table class="data table table-order-items w-full" id="my-orders-table" summary="Items Ordered">
|
|
13
|
+
<thead>
|
|
14
|
+
<tr className='bg-gray-150'>
|
|
15
|
+
<th class="col text-left py-3 px-2.5 rounded-tl-md">RMA</th>
|
|
16
|
+
<th class="col text-left py-3 px-2.5">Date</th>
|
|
17
|
+
<th class="col text-left py-3 px-2.5">Order</th>
|
|
18
|
+
<th class="col text-left py-3 px-2.5">Status</th>
|
|
19
|
+
<th class="col text-left py-3 px-2.5 rounded-tr-md">Action</th>
|
|
20
|
+
</tr>
|
|
21
|
+
</thead>
|
|
22
|
+
<tbody>
|
|
23
|
+
<tr id="order-item-row-1" className='border-b border-gray-150 last-of-type_border-0'>
|
|
24
|
+
<td class="col rma text-left align-top py-3 px-2.5" data-th="Product Name">
|
|
25
|
+
<span className='font-semibold'>
|
|
26
|
+
3000000011-2
|
|
27
|
+
</span>
|
|
28
|
+
</td>
|
|
29
|
+
<td class="col date align-top py-3 px-2.5" data-th="SKU">
|
|
30
|
+
<span className='font-normal'>
|
|
31
|
+
Jun 29, 2024
|
|
32
|
+
</span>
|
|
33
|
+
</td>
|
|
34
|
+
<td class="col order text-left align-top py-3 px-2.5" data-th="Price">
|
|
35
|
+
<Link to={'/order/123123'} className="underline">
|
|
36
|
+
3000000011
|
|
37
|
+
</Link>
|
|
38
|
+
</td>
|
|
39
|
+
<td class="col qty text-left align-top py-3 px-2.5" data-th="Qty">
|
|
40
|
+
<p className='p-1 bg-[#F1EFF6] rounded-md flex items-center px-5 w-fit'>
|
|
41
|
+
<span className='font-medium block text-blue-700'>
|
|
42
|
+
Pending Approval
|
|
43
|
+
</span>
|
|
44
|
+
</p>
|
|
45
|
+
</td>
|
|
46
|
+
<td class="col subtotal text-left align-top py-3 px-2.5" data-th="Subtotal">
|
|
47
|
+
<Link to={'/return/123123'} className="underline">
|
|
48
|
+
View Return
|
|
49
|
+
</Link>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</tbody>
|
|
53
|
+
</table>
|
|
54
|
+
</div>
|
|
55
|
+
<div className='md_hidden'>
|
|
56
|
+
<div class="orderDetails-orderTotalContainer-6or m-0 max-w-none min-w-none lg_m-auto lg_max-w-[25rem] lg_min-w-[22rem]">
|
|
57
|
+
<div className='item flex flex-col gap-2 p-4 odd_border border-gray-150 last-of-type_border-0'>
|
|
58
|
+
<div className='flex gap-3'>
|
|
59
|
+
<div className='min-w-[60px] text-[14px] font-semibold'>
|
|
60
|
+
RMA
|
|
61
|
+
</div>
|
|
62
|
+
<div className='min-w-[60px] text-[14px]'>
|
|
63
|
+
3000000011-2
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div className='flex gap-3'>
|
|
67
|
+
<div className='min-w-[60px] text-[14px] font-semibold'>
|
|
68
|
+
Date
|
|
69
|
+
</div>
|
|
70
|
+
<div className='min-w-[60px] text-[14px]'>
|
|
71
|
+
Jun 29, 2024
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
<div className='flex gap-3'>
|
|
75
|
+
<div className='min-w-[60px] text-[14px] font-semibold'>
|
|
76
|
+
Order
|
|
77
|
+
</div>
|
|
78
|
+
<div className='min-w-[60px] text-[14px]'>
|
|
79
|
+
<Link to={'/order-history/view/123123'} className="underline">
|
|
80
|
+
3000000011
|
|
81
|
+
</Link>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
<div className='flex gap-3'>
|
|
85
|
+
<div className='min-w-[60px] text-[14px] font-semibold self-center'>
|
|
86
|
+
Status
|
|
87
|
+
</div>
|
|
88
|
+
<div className='min-w-[60px] text-[14px]'>
|
|
89
|
+
<p className='p-1 bg-[#F1EFF6] rounded-md flex items-center px-5 w-fit'>
|
|
90
|
+
<span className='font-medium block text-blue-700'>
|
|
91
|
+
Pending Approval
|
|
92
|
+
</span>
|
|
93
|
+
</p>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<div className='flex gap-3'>
|
|
97
|
+
<div className='min-w-[60px] text-[14px] font-semibold self-center'>
|
|
98
|
+
Action
|
|
99
|
+
</div>
|
|
100
|
+
<div className='min-w-[60px] text-[14px]'>
|
|
101
|
+
<Link to={'/return/view/123123'} className="underline">
|
|
102
|
+
View Return
|
|
103
|
+
</Link>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</>
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export default rmaList
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
|
+
import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
|
|
4
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
5
|
+
import cn from 'classnames';
|
|
6
|
+
import { Printer } from 'iconsax-react';
|
|
7
|
+
// import Tabs from '@riosst100/pwa-marketplace/src/components/commons/Tabs';
|
|
8
|
+
import ItemsOrdered from './components/itemsOrdered';
|
|
9
|
+
import RMAList from './components/rmaList';
|
|
10
|
+
|
|
11
|
+
const OrderDetail = () => {
|
|
12
|
+
const { formatMessage } = useIntl();
|
|
13
|
+
const PAGE_TITLE = formatMessage({
|
|
14
|
+
id: 'Quotes.pageTitleTextRMADetail',
|
|
15
|
+
defaultMessage: 'Order Detail'
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
// const dataTabs =
|
|
19
|
+
// [
|
|
20
|
+
// {
|
|
21
|
+
// id: 'items-ordered',
|
|
22
|
+
// title: 'Items Ordered',
|
|
23
|
+
// content: <ItemsOrdered />
|
|
24
|
+
// },
|
|
25
|
+
// {
|
|
26
|
+
// id: 'invoices',
|
|
27
|
+
// title: 'Invoices',
|
|
28
|
+
// content: <><h2>invoices</h2></>
|
|
29
|
+
// },
|
|
30
|
+
// {
|
|
31
|
+
// id: 'order-shipments',
|
|
32
|
+
// title: 'Order Shipments',
|
|
33
|
+
// content: <><h2>Order shipments</h2></>
|
|
34
|
+
// }
|
|
35
|
+
// ];
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div className='relative grid gap-y-md'>
|
|
39
|
+
<StoreTitle>{PAGE_TITLE}</StoreTitle>
|
|
40
|
+
<div aria-live="polite" className="text-xl font-medium text-left">
|
|
41
|
+
{PAGE_TITLE} - DEV123123123
|
|
42
|
+
</div>
|
|
43
|
+
<div className='block relative'>
|
|
44
|
+
<div className='flex gap-2 mb-4 flex-col'>
|
|
45
|
+
<div class="box box-order-shipping-method flex gap-4">
|
|
46
|
+
<p class="box-title block min-w-[90px] font-semibold text-[14px]">
|
|
47
|
+
<span>Invoice</span>
|
|
48
|
+
</p>
|
|
49
|
+
<div class="box-content text-[14px]">
|
|
50
|
+
INV/20240705/MPL/4007072581
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="box box-order-shipping-method flex gap-4 text-[14px]">
|
|
54
|
+
<p class="box-title block min-w-[90px] font-semibold">
|
|
55
|
+
<span>Order Date</span>
|
|
56
|
+
</p>
|
|
57
|
+
<div class="box-content text-[14px]">
|
|
58
|
+
February 23, 2024
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="box box-order-shipping-method flex gap-4 text-[14px]">
|
|
62
|
+
<p class="box-title block min-w-[90px] font-semibold self-center">
|
|
63
|
+
<span>Status</span>
|
|
64
|
+
</p>
|
|
65
|
+
<div class="box-content text-[14px]">
|
|
66
|
+
<div className='p-1 bg-[#F1EFF6] rounded-md flex items-center px-5'>
|
|
67
|
+
<p className='text-[14px] text-blue-700 flex justify-between'>
|
|
68
|
+
<span className='font-medium block text-blue-700'>
|
|
69
|
+
Processing
|
|
70
|
+
</span>
|
|
71
|
+
</p>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
<div className='flex flex-col md_flex-row gap-x-4 justify-end'>
|
|
77
|
+
<Button
|
|
78
|
+
priority='high'
|
|
79
|
+
classes={{
|
|
80
|
+
content: "flex justify-center gap-x-2.5 items-center text-[14px] font-medium capitalize"
|
|
81
|
+
}}
|
|
82
|
+
className={cn(
|
|
83
|
+
"bg-white px-6 py-2 rounded-md text-gray-900 hover_!text-white border border-solid",
|
|
84
|
+
"border-gray-900 focus-visible_outline-none hover_bg-gray-900 min-h-[40px]"
|
|
85
|
+
)}
|
|
86
|
+
>
|
|
87
|
+
<span className='flex gap-x-3 justify-center group-hover_!text-white'>
|
|
88
|
+
<Printer
|
|
89
|
+
size="24"
|
|
90
|
+
className=''
|
|
91
|
+
/>
|
|
92
|
+
{
|
|
93
|
+
formatMessage({
|
|
94
|
+
id: 'order.PrintInvoices',
|
|
95
|
+
defaultMessage: 'Print Invoices'
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
</span>
|
|
99
|
+
</Button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
{/* <Tabs
|
|
104
|
+
data={dataTabs}
|
|
105
|
+
tabContentWrapperClassName='!p-0'
|
|
106
|
+
hasContent
|
|
107
|
+
tabWrapperClassName='xl_gap-x-[60px]'
|
|
108
|
+
rootClassName="mb-0"
|
|
109
|
+
/> */}
|
|
110
|
+
<div class="block block-order-details-view">
|
|
111
|
+
<div aria-live="polite" className="text-lg font-medium text-left mb-4 block-title">
|
|
112
|
+
{
|
|
113
|
+
formatMessage({
|
|
114
|
+
id: 'order.productInfomarion',
|
|
115
|
+
defaultMessage: 'Product Information'
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<ItemsOrdered />
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
<div class="block block-order-details-view">
|
|
124
|
+
<div aria-live="polite" className="text-lg font-medium text-left mb-4 block-title">
|
|
125
|
+
{
|
|
126
|
+
formatMessage({
|
|
127
|
+
id: 'order.rmaInformation',
|
|
128
|
+
defaultMessage: 'RMA Information'
|
|
129
|
+
})
|
|
130
|
+
}
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<RMAList />
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
<div class="block block-order-details-view">
|
|
137
|
+
<div aria-live="polite" className="text-lg font-medium text-left mb-4 block-title">
|
|
138
|
+
{
|
|
139
|
+
formatMessage({
|
|
140
|
+
id: 'order.OrderInformation',
|
|
141
|
+
defaultMessage: 'Order Information'
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
</div>
|
|
145
|
+
<div class="block-content flex flex-col gap-y-4 rounded-md border border-gray-100 px-4 py-6 justify-between gap-x-10">
|
|
146
|
+
<div class="box box-order-shipping-method flex gap-4">
|
|
147
|
+
<strong class="box-title block min-w-[140px]">
|
|
148
|
+
<span>Shipping Method</span>
|
|
149
|
+
</strong>
|
|
150
|
+
<div class="box-content">
|
|
151
|
+
Flat Rate - Fixed
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="box box-order-shipping-method flex gap-4">
|
|
155
|
+
<strong class="box-title block min-w-[140px]">
|
|
156
|
+
<span>Tracking Number</span>
|
|
157
|
+
</strong>
|
|
158
|
+
<div class="box-content">
|
|
159
|
+
TX8971239123
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="box box-order-shipping-address flex gap-4">
|
|
163
|
+
<strong class="box-title block min-w-[140px]"><span>Shipping Address</span></strong>
|
|
164
|
+
<div class="box-content">
|
|
165
|
+
<div className=' whitespace-pre-wrap'>
|
|
166
|
+
Veronica Costello{'\n'}
|
|
167
|
+
6146 Honey Bluff Parkway{'\n'}
|
|
168
|
+
Calder, Michigan, 49628-7978{'\n'}
|
|
169
|
+
United States{'\n'}
|
|
170
|
+
T: <a href="tel:(555) 229-3326">(555) 229-3326</a>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="box box-order-billing-method flex gap-4">
|
|
175
|
+
<strong class="box-title block min-w-[140px]">
|
|
176
|
+
<span>Payment Method</span>
|
|
177
|
+
</strong>
|
|
178
|
+
<div class="box-content">
|
|
179
|
+
<dl class="payment-method checkmemo">
|
|
180
|
+
<dt class="title">Check / Money order</dt>
|
|
181
|
+
</dl>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="box box-order-billing-address flex gap-4">
|
|
185
|
+
<strong class="box-title block min-w-[140px]">
|
|
186
|
+
<span>Billing Address</span>
|
|
187
|
+
</strong>
|
|
188
|
+
<div class="box-content">
|
|
189
|
+
<div className='whitespace-pre-wrap'>
|
|
190
|
+
Veronica Costello{'\n'}
|
|
191
|
+
6146 Honey Bluff Parkway{'\n'}
|
|
192
|
+
Calder, Michigan, 49628-7978{'\n'}
|
|
193
|
+
United States{'\n'}
|
|
194
|
+
T: <a href="tel:(555) 229-3326">(555) 229-3326</a>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
)
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export default OrderDetail;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import AccountLayout from '@riosst100/pwa-marketplace/src/components/AccountLayout';
|
|
2
|
+
import OrderDetail from '@riosst100/pwa-marketplace/src/components/OrderDetail/orderDetail';
|
|
3
|
+
|
|
4
|
+
import React from 'react'
|
|
5
|
+
|
|
6
|
+
const index = () => {
|
|
7
|
+
return (
|
|
8
|
+
<AccountLayout>
|
|
9
|
+
<OrderDetail />
|
|
10
|
+
</AccountLayout>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default index;
|