@riosst100/pwa-marketplace 1.2.5 → 1.2.7
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/package.json +18 -18
- package/src/Utilities/graphQL.js +76 -76
- package/src/componentOverrideMapping.js +17 -17
- package/src/components/BecomeSeller/becomeSeller.js +335 -335
- package/src/components/BecomeSeller/becomeSeller.module.css +46 -46
- package/src/components/BecomeSellerLink/becomeSellerLink.js +52 -52
- package/src/components/BecomeSellerLink/becomeSellerLink.module.css +12 -12
- package/src/components/BecomeSellerPage/becomeSellerPage.js +45 -45
- package/src/components/BecomeSellerPage/becomeSellerPage.module.css +21 -21
- package/src/components/Filter/index.js +53 -53
- package/src/components/Header/becomeSellerLink.js +28 -28
- package/src/components/Header/becomeSellerLink.module.css +12 -12
- package/src/components/Header/websiteSwitcher.js +109 -109
- package/src/components/Pagination/index.js +49 -49
- package/src/components/PhoneTextInput/phoneTextInput.module.css +21 -21
- package/src/components/ProductItem/index.js +50 -50
- package/src/components/Search/index.js +16 -16
- package/src/components/Seller/index.js +1 -1
- package/src/components/Seller/seller.js +249 -250
- package/src/components/SellerAccountPage/sellerAccountPage.js +110 -110
- package/src/components/SellerAccountPage/sellerAccountPage.module.css +55 -55
- package/src/components/SellerCountry/sellerCountry.gql.js +11 -11
- package/src/components/SellerInformation/index.js +1 -1
- package/src/components/SellerInformation/sellerInformation.js +90 -118
- package/src/components/SellerLocation/index.js +1 -1
- package/src/components/SellerLocation/sellerLocation.js +19 -23
- package/src/components/SellerLocation/sellerLocationItem.js +27 -25
- package/src/components/SellerPage/sellerPage.js +9 -9
- package/src/components/SellerProducts/sellerProducts.js +47 -67
- package/src/components/SellerReview/index.js +1 -1
- package/src/components/SellerReview/sellerReview.js +143 -143
- package/src/components/SellerReviewItem/sellerReviewItem.js +60 -60
- package/src/components/SellerVerification/sellerVerification.js +198 -198
- package/src/components/SellerVerification/sellerVerification.module.css +47 -47
- package/src/components/SellerVerificationPage/sellerVerificationPage.js +43 -43
- package/src/components/SellerVerificationPage/sellerVerificationPage.module.css +21 -21
- package/src/components/SortBy/index.js +24 -24
- package/src/components/WebsiteSwitcher/websiteSwitcher.js +109 -109
- package/src/components/commons/Slider/index.js +13 -13
- package/src/components/commons/Tabs/index.js +64 -64
- package/src/index.js +6 -6
- package/src/intercept.js +113 -113
- package/src/moduleOverrideWebpackPlugin.js +70 -70
- package/src/overwrites/peregrine/lib/store/actions/user/asyncActions.js +96 -96
- package/src/overwrites/peregrine/lib/talons/AccountMenu/useAccountMenuItems.js +74 -74
- package/src/overwrites/peregrine/lib/talons/Adapter/useAdapter.js +208 -208
- package/src/overwrites/peregrine/lib/talons/Header/storeSwitcher.gql.js +45 -45
- package/src/overwrites/peregrine/lib/talons/Header/useStoreSwitcher.js +204 -204
- package/src/overwrites/peregrine/lib/talons/Region/useRegion.js +102 -102
- package/src/overwrites/peregrine/lib/talons/SignIn/signIn.gql.js +56 -56
- package/src/overwrites/peregrine/lib/talons/SignIn/useSignIn.js +226 -226
- package/src/overwrites/peregrine/lib/util/deriveErrorMessage.js +34 -34
- package/src/overwrites/pwa-buildpack/lib/queries/getAvailableStoresConfigData.graphql +11 -11
- package/src/overwrites/venia-ui/lib/components/Adapter/adapter.js +112 -112
- package/src/overwrites/venia-ui/lib/components/Header/header.js +130 -130
- package/src/overwrites/venia-ui/lib/components/Header/storeSwitcher.js +105 -105
- package/src/overwrites/venia-ui/lib/components/Header/switcherItem.js +47 -47
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenu.spec.js +91 -91
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/MegaMenuItem.spec.js +123 -123
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/Submenu.spec.js +61 -61
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/SubmenuColumn.spec.js +50 -50
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenu.spec.js.snap +114 -114
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/MegaMenuItem.spec.js.snap +71 -71
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/Submenu.spec.js.snap +59 -59
- package/src/overwrites/venia-ui/lib/components/MegaMenu/__tests__/__snapshots__/SubmenuColumn.spec.js.snap +34 -34
- package/src/overwrites/venia-ui/lib/components/MegaMenu/index.js +1 -1
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.js +90 -90
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenu.module.css +12 -12
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.js +156 -156
- package/src/overwrites/venia-ui/lib/components/MegaMenu/megaMenuItem.module.css +30 -30
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.js +89 -89
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenu.module.css +42 -42
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.js +99 -99
- package/src/overwrites/venia-ui/lib/components/MegaMenu/submenuColumn.module.css +28 -28
- package/src/overwrites/venia-ui/lib/components/SearchBar/__stories__/searchBar.js +11 -11
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/searchField.spec.js.snap +72 -72
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedCategories.spec.js.snap +30 -30
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProduct.spec.js.snap +69 -69
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestedProducts.spec.js.snap +7 -7
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/__snapshots__/suggestions.spec.js.snap +12 -12
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/autocomplete.spec.js +52 -52
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchBar.spec.js +82 -82
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/searchField.spec.js +87 -87
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedCategories.spec.js +45 -45
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +43 -43
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestedProducts.spec.js +45 -45
- package/src/overwrites/venia-ui/lib/components/SearchBar/__tests__/suggestions.spec.js +110 -110
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.js +172 -172
- package/src/overwrites/venia-ui/lib/components/SearchBar/autocomplete.module.css +62 -62
- package/src/overwrites/venia-ui/lib/components/SearchBar/index.js +1 -1
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.js +74 -74
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchBar.module.css +49 -49
- package/src/overwrites/venia-ui/lib/components/SearchBar/searchField.js +40 -40
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.js +48 -48
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategories.module.css +13 -13
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedCategory.js +49 -49
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.js +97 -97
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProduct.module.css +24 -24
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.js +43 -43
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestedProducts.module.css +13 -13
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.js +75 -75
- package/src/overwrites/venia-ui/lib/components/SearchBar/suggestions.module.css +6 -6
- package/src/overwrites/venia-ui/lib/components/StoreCodeRoute/storeCodeRoute.js +75 -75
- package/src/overwrites/venia-ui/lib/targets/venia-ui-intercept.js +70 -70
- package/src/queries/getAvailableWebsitesConfigData.graphql +14 -14
- package/src/queries/index.js +30 -30
- package/src/talons/BecomeSeller/becomeSeller.gql.js +45 -45
- package/src/talons/BecomeSeller/useBecomeSeller.js +145 -145
- package/src/talons/BecomeSellerLink/useBecomeSellerLink.js +11 -11
- package/src/talons/BecomeSellerPage/useBecomeSellerPage.js +76 -76
- package/src/talons/Header/useBecomeSellerLink.js +13 -13
- package/src/talons/Header/useWebsiteSwitcher.js +218 -218
- package/src/talons/Seller/seller.gql.js +139 -204
- package/src/talons/Seller/useSeller.js +66 -71
- package/src/talons/SellerAccountPage/useSellerAccountPage.js +174 -174
- package/src/talons/SellerCountry/useSellerCountry.js +25 -25
- package/src/talons/WebsiteByIp/getWebsiteByIp.gql.js +13 -13
- package/src/talons/WebsiteByIp/useWebsiteByIp.js +34 -34
- package/src/talons/WebsiteSwitcher/useWebsiteSwitcher.js +218 -218
- package/src/theme/vars.js +6 -6
- package/src/util/mapSeller.js +7 -7
- package/src/components/OperatingHours/index.js +0 -1
- package/src/components/OperatingHours/operatingHours.js +0 -32
- package/src/components/Seller/sellerAddressCard.js +0 -48
- package/src/components/SellerDetail/index.js +0 -1
- package/src/components/SellerDetail/sellerDetail.js +0 -158
- package/src/components/SellerPage/core.js +0 -10
- package/src/talons/SellerProducts/useSellerProducts.js +0 -129
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import React, { Fragment, Suspense } from 'react';
|
|
2
|
-
import { shape, string } from 'prop-types';
|
|
3
|
-
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
|
-
|
|
5
|
-
import { useSellerAccountPage } from '@riosst100/pwa-marketplace/src/talons/SellerAccountPage/useSellerAccountPage';
|
|
6
|
-
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
-
// import SellerAccount from '@riosst100/pwa-marketplace/src/components/SellerAccount';
|
|
8
|
-
import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
|
|
9
|
-
import defaultClasses from './sellerAccountPage.module.css';
|
|
10
|
-
import { fullPageLoadingIndicator } from '@magento/venia-ui/lib/components/LoadingIndicator';
|
|
11
|
-
import AccountInformationPageOperations from '@magento/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js';
|
|
12
|
-
import Button from '@magento/venia-ui/lib/components/Button';
|
|
13
|
-
|
|
14
|
-
const SellerAccountPage = props => {
|
|
15
|
-
const classes = useStyle(defaultClasses, props.classes);
|
|
16
|
-
const sellerAccountProps = useSellerAccountPage({
|
|
17
|
-
...AccountInformationPageOperations
|
|
18
|
-
});
|
|
19
|
-
const {
|
|
20
|
-
handleCancel,
|
|
21
|
-
formErrors,
|
|
22
|
-
handleChangePassword,
|
|
23
|
-
handleSubmit,
|
|
24
|
-
initialValues,
|
|
25
|
-
isDisabled,
|
|
26
|
-
isUpdateMode,
|
|
27
|
-
loadDataError,
|
|
28
|
-
shouldShowNewPassword,
|
|
29
|
-
showUpdateMode,
|
|
30
|
-
recaptchaWidgetProps
|
|
31
|
-
} = sellerAccountProps;
|
|
32
|
-
const { formatMessage } = useIntl();
|
|
33
|
-
|
|
34
|
-
let sellerAccountDetails = null;
|
|
35
|
-
let sellerLoginAccount = null;
|
|
36
|
-
if (!initialValues) {
|
|
37
|
-
return fullPageLoadingIndicator;
|
|
38
|
-
} else {
|
|
39
|
-
const { customer } = initialValues;
|
|
40
|
-
const customerName = `${customer.firstname} ${customer.lastname}`;
|
|
41
|
-
const passwordValue = 'Same as current';
|
|
42
|
-
|
|
43
|
-
sellerLoginAccount = (
|
|
44
|
-
<Fragment>
|
|
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>
|
|
71
|
-
</div>
|
|
72
|
-
<div className={classes.editButtonContainer}>
|
|
73
|
-
<a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.editInformationButton}>
|
|
74
|
-
<FormattedMessage
|
|
75
|
-
id={'global.sellerDashboardText'}
|
|
76
|
-
defaultMessage={'Seller Dashboard'}
|
|
77
|
-
/>
|
|
78
|
-
</a>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</Fragment>
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return (
|
|
86
|
-
<div className={classes.root}>
|
|
87
|
-
<StoreTitle>
|
|
88
|
-
{formatMessage({
|
|
89
|
-
id: 'sellerAccountPage.title',
|
|
90
|
-
defaultMessage: 'Seller Account'
|
|
91
|
-
})}
|
|
92
|
-
</StoreTitle>
|
|
93
|
-
{sellerLoginAccount}
|
|
94
|
-
</div>
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default SellerAccountPage;
|
|
99
|
-
|
|
100
|
-
SellerAccountPage.defaultProps = {
|
|
101
|
-
signedInRedirectUrl: '/seller-account',
|
|
102
|
-
signInPageUrl: '/sign-in'
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
SellerAccountPage.propTypes = {
|
|
106
|
-
classes: shape({
|
|
107
|
-
root: string
|
|
108
|
-
}),
|
|
109
|
-
signedInRedirectUrl: string
|
|
110
|
-
};
|
|
1
|
+
import React, { Fragment, Suspense } from 'react';
|
|
2
|
+
import { shape, string } from 'prop-types';
|
|
3
|
+
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
|
+
|
|
5
|
+
import { useSellerAccountPage } from '@riosst100/pwa-marketplace/src/talons/SellerAccountPage/useSellerAccountPage';
|
|
6
|
+
import { useStyle } from '@magento/venia-ui/lib/classify';
|
|
7
|
+
// import SellerAccount from '@riosst100/pwa-marketplace/src/components/SellerAccount';
|
|
8
|
+
import { StoreTitle } from '@magento/venia-ui/lib/components/Head';
|
|
9
|
+
import defaultClasses from './sellerAccountPage.module.css';
|
|
10
|
+
import { fullPageLoadingIndicator } from '@magento/venia-ui/lib/components/LoadingIndicator';
|
|
11
|
+
import AccountInformationPageOperations from '@magento/venia-ui/lib/components/AccountInformationPage/accountInformationPage.gql.js';
|
|
12
|
+
import Button from '@magento/venia-ui/lib/components/Button';
|
|
13
|
+
|
|
14
|
+
const SellerAccountPage = props => {
|
|
15
|
+
const classes = useStyle(defaultClasses, props.classes);
|
|
16
|
+
const sellerAccountProps = useSellerAccountPage({
|
|
17
|
+
...AccountInformationPageOperations
|
|
18
|
+
});
|
|
19
|
+
const {
|
|
20
|
+
handleCancel,
|
|
21
|
+
formErrors,
|
|
22
|
+
handleChangePassword,
|
|
23
|
+
handleSubmit,
|
|
24
|
+
initialValues,
|
|
25
|
+
isDisabled,
|
|
26
|
+
isUpdateMode,
|
|
27
|
+
loadDataError,
|
|
28
|
+
shouldShowNewPassword,
|
|
29
|
+
showUpdateMode,
|
|
30
|
+
recaptchaWidgetProps
|
|
31
|
+
} = sellerAccountProps;
|
|
32
|
+
const { formatMessage } = useIntl();
|
|
33
|
+
|
|
34
|
+
let sellerAccountDetails = null;
|
|
35
|
+
let sellerLoginAccount = null;
|
|
36
|
+
if (!initialValues) {
|
|
37
|
+
return fullPageLoadingIndicator;
|
|
38
|
+
} else {
|
|
39
|
+
const { customer } = initialValues;
|
|
40
|
+
const customerName = `${customer.firstname} ${customer.lastname}`;
|
|
41
|
+
const passwordValue = 'Same as current';
|
|
42
|
+
|
|
43
|
+
sellerLoginAccount = (
|
|
44
|
+
<Fragment>
|
|
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>
|
|
71
|
+
</div>
|
|
72
|
+
<div className={classes.editButtonContainer}>
|
|
73
|
+
<a href={process.env.MAGENTO_BACKEND_URL + "/lofmarketplace/seller/login"} className={classes.editInformationButton}>
|
|
74
|
+
<FormattedMessage
|
|
75
|
+
id={'global.sellerDashboardText'}
|
|
76
|
+
defaultMessage={'Seller Dashboard'}
|
|
77
|
+
/>
|
|
78
|
+
</a>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</Fragment>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<div className={classes.root}>
|
|
87
|
+
<StoreTitle>
|
|
88
|
+
{formatMessage({
|
|
89
|
+
id: 'sellerAccountPage.title',
|
|
90
|
+
defaultMessage: 'Seller Account'
|
|
91
|
+
})}
|
|
92
|
+
</StoreTitle>
|
|
93
|
+
{sellerLoginAccount}
|
|
94
|
+
</div>
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default SellerAccountPage;
|
|
99
|
+
|
|
100
|
+
SellerAccountPage.defaultProps = {
|
|
101
|
+
signedInRedirectUrl: '/seller-account',
|
|
102
|
+
signInPageUrl: '/sign-in'
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
SellerAccountPage.propTypes = {
|
|
106
|
+
classes: shape({
|
|
107
|
+
root: string
|
|
108
|
+
}),
|
|
109
|
+
signedInRedirectUrl: string
|
|
110
|
+
};
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
composes: grid from global;
|
|
3
|
-
composes: gap-y-md from global;
|
|
4
|
-
composes: px-lg from global;
|
|
5
|
-
composes: py-md from global;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.title {
|
|
9
|
-
composes: font-bold from global;
|
|
10
|
-
composes: font-serif from global;
|
|
11
|
-
composes: justify-self-center from global;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.accountDetails {
|
|
15
|
-
composes: gap-y-md from global;
|
|
16
|
-
composes: grid from global;
|
|
17
|
-
composes: grid-cols-1 from global;
|
|
18
|
-
|
|
19
|
-
composes: lg_grid-cols-3 from global;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.lineItemsContainer {
|
|
23
|
-
composes: gap-3 from global;
|
|
24
|
-
composes: grid from global;
|
|
25
|
-
composes: grid-cols-1 from global;
|
|
26
|
-
composes: leading-normal from global;
|
|
27
|
-
grid-column: 1 / span 1;
|
|
28
|
-
|
|
29
|
-
composes: lg_gap-xs from global;
|
|
30
|
-
composes: lg_grid-cols-2 from global;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.lineItemLabel {
|
|
34
|
-
composes: font-bold from global;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.nameLabel,
|
|
38
|
-
.emailLabel,
|
|
39
|
-
.passwordLabel {
|
|
40
|
-
composes: font-bold from global;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.nameValue,
|
|
44
|
-
.emailValue,
|
|
45
|
-
.passwordValue {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.editButtonContainer {
|
|
49
|
-
grid-column: 1 / span 1;
|
|
50
|
-
composes: text-center from global;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.editInformationButton {
|
|
54
|
-
composes: root_normalPriority from '@magento/venia-ui/lib/components/Button/button.module.css';
|
|
55
|
-
}
|
|
1
|
+
.root {
|
|
2
|
+
composes: grid from global;
|
|
3
|
+
composes: gap-y-md from global;
|
|
4
|
+
composes: px-lg from global;
|
|
5
|
+
composes: py-md from global;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.title {
|
|
9
|
+
composes: font-bold from global;
|
|
10
|
+
composes: font-serif from global;
|
|
11
|
+
composes: justify-self-center from global;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.accountDetails {
|
|
15
|
+
composes: gap-y-md from global;
|
|
16
|
+
composes: grid from global;
|
|
17
|
+
composes: grid-cols-1 from global;
|
|
18
|
+
|
|
19
|
+
composes: lg_grid-cols-3 from global;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lineItemsContainer {
|
|
23
|
+
composes: gap-3 from global;
|
|
24
|
+
composes: grid from global;
|
|
25
|
+
composes: grid-cols-1 from global;
|
|
26
|
+
composes: leading-normal from global;
|
|
27
|
+
grid-column: 1 / span 1;
|
|
28
|
+
|
|
29
|
+
composes: lg_gap-xs from global;
|
|
30
|
+
composes: lg_grid-cols-2 from global;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.lineItemLabel {
|
|
34
|
+
composes: font-bold from global;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nameLabel,
|
|
38
|
+
.emailLabel,
|
|
39
|
+
.passwordLabel {
|
|
40
|
+
composes: font-bold from global;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nameValue,
|
|
44
|
+
.emailValue,
|
|
45
|
+
.passwordValue {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.editButtonContainer {
|
|
49
|
+
grid-column: 1 / span 1;
|
|
50
|
+
composes: text-center from global;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.editInformationButton {
|
|
54
|
+
composes: root_normalPriority from '@magento/venia-ui/lib/components/Button/button.module.css';
|
|
55
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { gql } from '@apollo/client';
|
|
2
|
-
|
|
3
|
-
export const GET_SELLER_COUNTRIES_QUERY = gql`
|
|
4
|
-
query GetSellerCountries {
|
|
5
|
-
sellerCountries {
|
|
6
|
-
id
|
|
7
|
-
full_name_english
|
|
8
|
-
two_letter_abbreviation
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;
|
|
1
|
+
import { gql } from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
export const GET_SELLER_COUNTRIES_QUERY = gql`
|
|
4
|
+
query GetSellerCountries {
|
|
5
|
+
sellerCountries {
|
|
6
|
+
id
|
|
7
|
+
full_name_english
|
|
8
|
+
two_letter_abbreviation
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './sellerInformation';
|
|
1
|
+
export { default } from './sellerInformation';
|
|
@@ -1,119 +1,91 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import SellerLocation from '../SellerLocation';
|
|
3
|
-
import { Location, ShopAdd } from 'iconsax-react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
{seller ? seller.term_and_conditions : ''}
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
{/* </div>
|
|
95
|
-
</div>
|
|
96
|
-
{seller ? <SellerLocation storeLocators={seller.store_locators} /> : ''}
|
|
97
|
-
</div> */}
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
<SellerLocation />
|
|
101
|
-
</div>
|
|
102
|
-
</>
|
|
103
|
-
)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const SellerShipTo = ({seller}) => {
|
|
107
|
-
const shipTo = seller ? seller.ship_to : '';
|
|
108
|
-
const shipToCountry = seller ? seller.ship_to_country : '';
|
|
109
|
-
|
|
110
|
-
return <>
|
|
111
|
-
<div class="flex flex-wrap items-center gap-[0px_10px] px-0 py-[5px] relative flex-1 grow">
|
|
112
|
-
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
113
|
-
<div class="relative w-fit mt-[-1.00px] [font-family:'Frederik-Regular',Helvetica] font-normal text-[#1b1b1b] text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">{shipTo}<br />{shipToCountry}</div>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</>
|
|
117
|
-
}
|
|
118
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SellerLocation from '../SellerLocation';
|
|
3
|
+
import { Location, ShopAdd } from 'iconsax-react';
|
|
4
|
+
|
|
5
|
+
const SellerInformation = ({ seller }) => {
|
|
6
|
+
console.log(seller.operating_hours)
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<div class="flex flex-col items-start gap-[30px] px-[10px]">
|
|
10
|
+
<div class="grid xs_grid-cols-1 md_grid-cols-2 xl_grid-cols-3 relative w-full grow xs_gap-y-6 md_gap-x-14 xl_gap-x-14">
|
|
11
|
+
<div class="flex flex-col items-start gap-[30px] relative self-stretch">
|
|
12
|
+
<div class="flex flex-col items-start gap-[15px] relative self-stretch w-full flex-[0_0_auto]">
|
|
13
|
+
<div class="relative w-fit mt-[-1.00px] [font-family:'Frederik-DemiBold',Helvetica] font-bold text-[16px] tracking-[0] leading-[normal] whitespace-nowrap">Description</div>
|
|
14
|
+
<div class="inline-flex items-center justify-center gap-[10px] relative flex-[0_0_auto]">
|
|
15
|
+
<p class="relative mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[16px]">
|
|
16
|
+
{seller ? seller.description : ''}<br />
|
|
17
|
+
<br />
|
|
18
|
+
{seller ? seller.contact_number : ''}
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="inline-flex items-center gap-[10px] relative flex-[0_0_auto]">
|
|
22
|
+
<Location color="#009A7B" size={18} variant="Outline" className='stroke-[#009A7B] stroke-[0.5px]' />
|
|
23
|
+
<p class="relative w-fit font-normal text-[#009a7b] text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">612, Jurong West Street 65</p>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="inline-flex items-center gap-[10px] relative flex-[0_0_auto]">
|
|
26
|
+
<ShopAdd color="#009A7B" size={18} variant="Outline" className='stroke-[#009A7B] stroke-[0.5px]' />
|
|
27
|
+
<div class="relative self-stretch mt-[-1.00px] font-normal text-[#009a7b] text-[14px] tracking-[0] leading-[normal]">Joined: December 2023</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex flex-col items-start gap-[30px] relative">
|
|
32
|
+
<div class="flex flex-col items-start gap-[15px] relative self-stretch w-full flex-[0_0_auto]">
|
|
33
|
+
<div class="relative w-fit mt-[-1.00px] [font-family:'Frederik-DemiBold',Helvetica] font-bold text-[16px] tracking-[0] leading-[normal] whitespace-nowrap">Working Hour</div>
|
|
34
|
+
<div class="inline-flex flex-col items-start relative flex-[0_0_auto]">
|
|
35
|
+
<div class="inline-flex items-start gap-[10px] relative flex-[0_0_auto]">
|
|
36
|
+
<p class="relative mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal]">
|
|
37
|
+
Monday - Friday 9 AM - 5 PM<br />
|
|
38
|
+
<br />
|
|
39
|
+
Saturday 11 AM - 3 PM<br />
|
|
40
|
+
<br />
|
|
41
|
+
Sunday Close
|
|
42
|
+
</p>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="flex flex-col items-start gap-[15px] relative">
|
|
48
|
+
<div class="inline-flex items-start gap-[10px] relative flex-[0_0_auto]">
|
|
49
|
+
<div class="relative w-fit mt-[-1.00px] [font-family:'Frederik-DemiBold',Helvetica] font-bold text-[16px] tracking-[0] leading-[normal] whitespace-nowrap">Ship To</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="flex flex-wrap items-start gap-[10px_10px] relative flex-[0_0_auto]">
|
|
52
|
+
<div class="flex flex-wrap items-center gap-2 px-0 py-[5px] relative flex-1 grow">
|
|
53
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
54
|
+
<div class="relative w-fit mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">Yishun</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
57
|
+
<div class="relative w-fit mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">Jurong West</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
60
|
+
<div class="relative w-fit mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">Jurong East</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
63
|
+
<div class="relative w-fit mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">Seletar</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto] border-r [border-right-style:solid] border-[#e6e9ea]">
|
|
66
|
+
<div class="mt-[-1.00px] text-[14px] leading-[normal] whitespace-nowrap relative w-fit font-normal tracking-[0]">Serangoon</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="inline-flex items-center justify-center gap-[10px] px-[10px] py-0 relative flex-[0_0_auto]">
|
|
69
|
+
<div class="relative w-fit mt-[-1.00px] font-normal text-[14px] tracking-[0] leading-[normal] whitespace-nowrap">Bukit Batok</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="flex items-start relative self-stretch w-full flex-[0_0_auto]">
|
|
76
|
+
<div class="flex flex-col items-start gap-[15px] relative flex-1 grow">
|
|
77
|
+
<div class="relative w-fit mt-[-1.00px] [font-family:'Frederik-DemiBold',Helvetica] font-bold text-[16px] tracking-[0] leading-[normal] whitespace-nowrap">Terms & Condition</div>
|
|
78
|
+
<div class="inline-flex items-center justify-center gap-[10px] relative flex-[0_0_auto]">
|
|
79
|
+
<div class="flex flex-col items-start gap-[2px]">
|
|
80
|
+
{seller ? seller.term_and_conditions : ''}
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div >
|
|
84
|
+
</div >
|
|
85
|
+
<SellerLocation />
|
|
86
|
+
</div >
|
|
87
|
+
</>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
119
91
|
export default SellerInformation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './sellerLocation';
|
|
1
|
+
export { default } from './sellerLocation';
|