umwd-components 0.1.668 → 0.1.670
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/dist/node_modules/base64-js/index.js +1 -1
- package/dist/node_modules/ieee754/index.js +1 -1
- package/dist/src/components/e-commerce/enduser/EnduserProfileDisplay.js +1 -1
- package/dist/src/components/e-commerce/enduser/EnduserProfileEditForm.js +1 -1
- package/dist/src/data/services/e-commerce/enduser/get-enduser-me-loader.js +1 -1
- package/dist/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/types/e-commerce/enduser/types.d.ts +0 -4
- package/package.json +1 -1
- package/src/components/e-commerce/enduser/EnduserProfileDisplay.tsx +0 -18
- package/src/components/e-commerce/enduser/EnduserProfileEditForm.tsx +1 -37
- package/src/data/services/e-commerce/enduser/get-enduser-me-loader.ts +1 -12
- package/src/data/services/logistics/dispatcher/get-dispatcher-me-loader.ts +1 -1
- package/src/types/e-commerce/enduser/types.ts +0 -2
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { BusinessCredentialsWithJSONProps } from "../BusinessCredentialsProps";
|
|
2
|
-
import { AddressProps } from "../../AddressProps";
|
|
3
1
|
export interface EnduserProfileProps {
|
|
4
2
|
id: string;
|
|
5
3
|
uuid: string;
|
|
@@ -8,6 +6,4 @@ export interface EnduserProfileProps {
|
|
|
8
6
|
last_name: string;
|
|
9
7
|
email: string;
|
|
10
8
|
phone: string;
|
|
11
|
-
company_address: AddressProps;
|
|
12
|
-
business_credentials: BusinessCredentialsWithJSONProps;
|
|
13
9
|
}
|
package/package.json
CHANGED
|
@@ -38,8 +38,6 @@ export default function EnduserProfileDisplay({
|
|
|
38
38
|
last_name,
|
|
39
39
|
email,
|
|
40
40
|
phone,
|
|
41
|
-
company_address,
|
|
42
|
-
business_credentials,
|
|
43
41
|
editProfileUrl = "/dashboard/admin/user/profile/edit",
|
|
44
42
|
completeEnough = false,
|
|
45
43
|
} = data;
|
|
@@ -95,22 +93,6 @@ export default function EnduserProfileDisplay({
|
|
|
95
93
|
</Stack>
|
|
96
94
|
</Stack>
|
|
97
95
|
</Grid>
|
|
98
|
-
<Grid item xs={12} md={4}>
|
|
99
|
-
<Typography variant="h6">Business Credentials</Typography>
|
|
100
|
-
{business_credentials ? (
|
|
101
|
-
<BusinessCredentials data={business_credentials} />
|
|
102
|
-
) : (
|
|
103
|
-
<Typography>Business credentials not available</Typography>
|
|
104
|
-
)}
|
|
105
|
-
</Grid>
|
|
106
|
-
<Grid item xs={12} md={4}>
|
|
107
|
-
<Typography variant="h6">Company Address</Typography>
|
|
108
|
-
{company_address ? (
|
|
109
|
-
<Address data={{ ...company_address }} />
|
|
110
|
-
) : (
|
|
111
|
-
<Typography>Company address not available</Typography>
|
|
112
|
-
)}
|
|
113
|
-
</Grid>
|
|
114
96
|
</Grid>
|
|
115
97
|
</Stack>
|
|
116
98
|
</Paper>
|
|
@@ -42,15 +42,7 @@ export default function EnduserProfileEditForm({
|
|
|
42
42
|
revalidateCallback?: () => void;
|
|
43
43
|
handleClose?: () => void;
|
|
44
44
|
}) {
|
|
45
|
-
const {
|
|
46
|
-
id,
|
|
47
|
-
first_name,
|
|
48
|
-
last_name,
|
|
49
|
-
email,
|
|
50
|
-
phone,
|
|
51
|
-
company_address,
|
|
52
|
-
business_credentials,
|
|
53
|
-
} = data;
|
|
45
|
+
const { id, first_name, last_name, email, phone } = data;
|
|
54
46
|
const boundAction = updateEnduserProfileAction.bind(null, parseInt(id));
|
|
55
47
|
const [formState, formAction] = useFormState(boundAction, INITIAL_STATE);
|
|
56
48
|
const { handleAddMessage } = useSnackbar();
|
|
@@ -125,34 +117,6 @@ export default function EnduserProfileEditForm({
|
|
|
125
117
|
</Stack>
|
|
126
118
|
</Grid>
|
|
127
119
|
|
|
128
|
-
<Grid item xs={12}>
|
|
129
|
-
<Paper sx={{ p: 2 }}>
|
|
130
|
-
<Typography variant="h6" gutterBottom>
|
|
131
|
-
Company Address
|
|
132
|
-
</Typography>
|
|
133
|
-
<Divider sx={{ mb: 2 }} />
|
|
134
|
-
<AddressFields
|
|
135
|
-
componentName="company_address"
|
|
136
|
-
componentReference="common.address"
|
|
137
|
-
data={company_address}
|
|
138
|
-
/>
|
|
139
|
-
</Paper>
|
|
140
|
-
</Grid>
|
|
141
|
-
|
|
142
|
-
<Grid item xs={12}>
|
|
143
|
-
<Paper sx={{ p: 2 }}>
|
|
144
|
-
<Typography variant="h6" gutterBottom>
|
|
145
|
-
Business Credentials
|
|
146
|
-
</Typography>
|
|
147
|
-
<Divider sx={{ mb: 2 }} />
|
|
148
|
-
<BusinessCredentialsFields
|
|
149
|
-
componentName="business_credentials"
|
|
150
|
-
componentReference="business.credentials"
|
|
151
|
-
data={business_credentials}
|
|
152
|
-
/>
|
|
153
|
-
</Paper>
|
|
154
|
-
</Grid>
|
|
155
|
-
|
|
156
120
|
<Grid item xs={12}>
|
|
157
121
|
<Stack
|
|
158
122
|
direction="row"
|
|
@@ -9,18 +9,7 @@ const baseUrl = getStrapiURL();
|
|
|
9
9
|
|
|
10
10
|
const query = qs.stringify({
|
|
11
11
|
populate: {
|
|
12
|
-
enduser_profile:
|
|
13
|
-
populate: {
|
|
14
|
-
company_address: true,
|
|
15
|
-
private_address: true,
|
|
16
|
-
business_credentials: {
|
|
17
|
-
populate: {
|
|
18
|
-
vat_validate_response: true,
|
|
19
|
-
eori_validate_response: true,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
12
|
+
enduser_profile: true,
|
|
24
13
|
},
|
|
25
14
|
});
|
|
26
15
|
|