@weareconceptstudio/account 0.4.1 → 0.4.2
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.
|
@@ -21,19 +21,18 @@ const AccountTemplate = ({ isFullWidth = true, menuOptions = [], children }) =>
|
|
|
21
21
|
const loadingComponent = useMemo(() => {
|
|
22
22
|
return (React.createElement(Loader, { className: 'account', pathname: window.location.pathname }));
|
|
23
23
|
}, [window.location.pathname]);
|
|
24
|
-
return user && isLoggedIn ? (React.createElement(
|
|
25
|
-
React.createElement(
|
|
26
|
-
React.createElement("
|
|
27
|
-
React.createElement("
|
|
28
|
-
React.createElement("div", { className: `
|
|
29
|
-
React.createElement(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
React.createElement("div", { className: `max-width-wrap ${isFullWidth ? 'full-max-width' : ''}` }, children)))))) : null;
|
|
24
|
+
return (React.createElement(Page, { className: 'account use-account' }, user && isLoggedIn ? (React.createElement(AccountStyle, { className: 'account-container' },
|
|
25
|
+
React.createElement("div", { className: 'account-wrap' },
|
|
26
|
+
React.createElement("aside", { className: 'sidebar' },
|
|
27
|
+
React.createElement("div", { className: `sidebar-inner-wrap` },
|
|
28
|
+
React.createElement("div", { className: `my-acc-wrap` },
|
|
29
|
+
React.createElement(Text, { className: 'account-p account-p1 account-font-bold account-primary-color1', text: 'myAccount' }),
|
|
30
|
+
React.createElement("div", { className: `account-line` })),
|
|
31
|
+
React.createElement("div", { className: 'tabs-wrap' }, menu),
|
|
32
|
+
React.createElement(Text, { text: 'signOut', onClick: signOut, className: 'account-p account-p1 account-error-color account-font-bold sign-out' }))),
|
|
33
|
+
lineStore,
|
|
34
|
+
React.createElement("div", { className: `right-bar` },
|
|
35
|
+
loadingComponent,
|
|
36
|
+
React.createElement("div", { className: `max-width-wrap ${isFullWidth ? 'full-max-width' : ''}` }, children))))) : null));
|
|
38
37
|
};
|
|
39
38
|
export default AccountTemplate;
|
|
@@ -8,12 +8,15 @@ const CartTemplateStyle = styled.section `
|
|
|
8
8
|
|
|
9
9
|
a,
|
|
10
10
|
button {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
gap: var(--sp1x);
|
|
15
11
|
text-decoration: unset !important;
|
|
16
12
|
|
|
13
|
+
.content-button {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
gap: var(--sp1x);
|
|
18
|
+
}
|
|
19
|
+
|
|
17
20
|
@media (pointer: fine) {
|
|
18
21
|
@media (hover: hover) {
|
|
19
22
|
&:hover {
|
|
@@ -29,11 +29,11 @@ const OrderDetails = memo(({ className, status, date, orderNumber, itemsCount, t
|
|
|
29
29
|
translate('totalItems'),
|
|
30
30
|
":"),
|
|
31
31
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: itemsCount })),
|
|
32
|
-
React.createElement("div", { className: `order-detail-item-wrap` },
|
|
32
|
+
shippingCost ? (React.createElement("div", { className: `order-detail-item-wrap` },
|
|
33
33
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
34
34
|
translate('shippingCost'),
|
|
35
35
|
":"),
|
|
36
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: `${shippingCost == 0 ? 'free' : handlePriceCheckFunc(shippingCost, currency)}` })),
|
|
36
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 value`, text: `${shippingCost == 0 ? 'free' : handlePriceCheckFunc(shippingCost, currency)}` }))) : null,
|
|
37
37
|
usedBalance ? (React.createElement("div", { className: `order-detail-item-wrap` },
|
|
38
38
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
39
39
|
translate('usedBalance'),
|