@riosst100/pwa-marketplace 2.7.9 → 2.8.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "2.7.9",
4
+ "version": "2.8.0",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -43,39 +43,25 @@ const SellerAccountPage = props => {
43
43
  sellerLoginAccount = (
44
44
  <Fragment>
45
45
  <div className={classes.accountDetails}>
46
- <span className={classes.nameLabel}>
47
- <FormattedMessage
48
- id={'global.sellerDashboardLoginAccountText'}
49
- defaultMessage={'Seller Dashboard Login Account'}
50
- />
51
- </span>
52
- <div className={classes.lineItemsContainer}>
53
- <span className={classes.emailLabel}>
54
- <FormattedMessage
55
- id={'global.email'}
56
- defaultMessage={'Email'}
57
- />
58
- </span>
59
- <span className={classes.emailValue}>
60
- {customer.email}
61
- </span>
62
- <span className={classes.passwordLabel}>
63
- <FormattedMessage
64
- id={'global.password'}
65
- defaultMessage={'Password'}
66
- />
67
- </span>
68
- <span className={classes.passwordValue}>
69
- {passwordValue}
70
- </span>
46
+ <div className={classes.container}>
47
+ <div className={classes.success}>
48
+ {/* <h2 className={classes.title}>Seller Registration Successful!</h2> */}
49
+ <p className={classes.message}>
50
+ Congratulations! Your registration as a seller was successful.
51
+ Please log in to the <strong>Seller Dashboard</strong> with your account to complete the verification process and start managing your listings.
52
+ </p>
71
53
  </div>
72
- <div className={classes.editButtonContainer}>
73
- <a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.editInformationButton}>
54
+
55
+ {/* <div className={classes.card}> */}
56
+ <div className={classes.actions}>
57
+ <a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.btn} role="button">
74
58
  <FormattedMessage
75
59
  id={'global.sellerDashboardText'}
76
- defaultMessage={'Seller Dashboard'}
77
- />
60
+ defaultMessage={'Go to Seller Dashboard'}
61
+ />
78
62
  </a>
63
+ </div>
64
+ {/* </div> */}
79
65
  </div>
80
66
  </div>
81
67
  </Fragment>
@@ -5,9 +5,69 @@
5
5
  composes: py-md from global;
6
6
  }
7
7
 
8
+ .container {
9
+ max-width: 600px;
10
+ margin: 0px auto;
11
+ padding: 20px;
12
+ }
13
+
14
+ .success {
15
+ background: #ecfdf5;
16
+ border: 1px solid #a7f3d0;
17
+ border-radius: 10px;
18
+ padding: 16px 20px;
19
+ margin-bottom: 20px;
20
+ }
21
+
22
+ .title {
23
+ color: #065f46;
24
+ font-size: 18px;
25
+ font-weight: 700;
26
+ margin-bottom: 8px;
27
+ }
28
+
29
+ .message {
30
+ color: #065f46;
31
+ font-size: 14px;
32
+ line-height: 1.5;
33
+ }
34
+
35
+ .card {
36
+ background: #ffffff;
37
+ border: 1px solid #e5e7eb;
38
+ border-radius: 10px;
39
+ padding: 18px 20px;
40
+ }
41
+
42
+ .actions {
43
+ /* margin-top: 16px; */
44
+ text-align: center;
45
+ }
46
+
47
+ .btn {
48
+ display: inline-block;
49
+ background: #f76b1c;
50
+ color: #fff;
51
+ text-decoration: none;
52
+ padding: 10px 16px;
53
+ border-radius: 8px;
54
+ font-weight: 600;
55
+ transition: background 0.15s ease, transform 0.15s ease;
56
+ }
57
+
58
+ .btn:hover {
59
+ background: #f76b1c;
60
+ transform: translateY(-1px);
61
+ }
62
+
63
+ .nameLabel {
64
+ font-weight: 600;
65
+ }
66
+
67
+
8
68
  .title {
9
69
  composes: font-bold from global;
10
- composes: font-serif from global;
70
+ /* composes: font-serif from global; */
11
71
  composes: justify-self-center from global;
12
72
  }
13
73
 
@@ -16,7 +76,7 @@
16
76
  composes: grid from global;
17
77
  composes: grid-cols-1 from global;
18
78
 
19
- composes: lg_grid-cols-3 from global;
79
+ composes: lg_grid-cols-1 from global;
20
80
  }
21
81
 
22
82
  .lineItemsContainer {
@@ -56,16 +56,16 @@ export const useAccountMenuItems = props => {
56
56
  }
57
57
  ];
58
58
 
59
- if (storage && storage.getItem('is_seller')) {
60
- MENU_ITEMS = [
61
- ...MENU_ITEMS,
62
- {
63
- name: 'Seller Account Information',
64
- id: 'accountMenu.sellerAccountInfoLink',
65
- url: '/seller-account'
66
- }
67
- ];
68
- }
59
+ // if (storage && storage.getItem('is_seller')) {
60
+ // MENU_ITEMS = [
61
+ // ...MENU_ITEMS,
62
+ // {
63
+ // name: 'Seller Account Information',
64
+ // id: 'accountMenu.sellerAccountInfoLink',
65
+ // url: '/seller-account'
66
+ // }
67
+ // ];
68
+ // }
69
69
 
70
70
  return {
71
71
  handleSignOut,
@@ -62,7 +62,7 @@ export const useBecomeSeller = props => {
62
62
  // Create the account and then sign in.
63
63
  const result = await becomeSeller({
64
64
  variables: {
65
- seller_type: sellerType,
65
+ seller_type: formValues.seller.seller_type,
66
66
  group_id: '',
67
67
  url_key: formValues.seller.store_url,
68
68
  name: formValues.seller.seller_profile_name,