@digitaldefiance/express-suite-react-components 4.26.21 → 4.26.22
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/express-suite-react-components",
|
|
3
|
-
"version": "4.26.
|
|
3
|
+
"version": "4.26.22",
|
|
4
4
|
"homepage": "https://github.com/Digital-Defiance/react-components",
|
|
5
5
|
"description": "React MUI components for Digital Defiance Express Suite",
|
|
6
6
|
"repository": {
|
|
@@ -2,7 +2,6 @@ import { FC } from 'react';
|
|
|
2
2
|
import { RegisterFormProps } from '../components/RegisterForm';
|
|
3
3
|
export interface RegisterFormWrapperProps {
|
|
4
4
|
onSuccess?: () => void;
|
|
5
|
-
redirectTo?: string;
|
|
6
5
|
componentProps?: Partial<Omit<RegisterFormProps, 'onSubmit' | 'timezones' | 'getInitialTimezone'>>;
|
|
7
6
|
}
|
|
8
7
|
export declare const RegisterFormWrapper: FC<RegisterFormWrapperProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterFormWrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/wrappers/RegisterFormWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RegisterFormWrapper.d.ts","sourceRoot":"","sources":["../../../../../packages/digitaldefiance-express-suite-react-components/src/wrappers/RegisterFormWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAEL,iBAAiB,EAElB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CACtB,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,WAAW,GAAG,oBAAoB,CAAC,CACzE,CAAC;CACH;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA8C5D,CAAC"}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RegisterFormWrapper = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_router_dom_1 = require("react-router-dom");
|
|
6
5
|
const RegisterForm_1 = require("../components/RegisterForm");
|
|
7
6
|
const contexts_1 = require("../contexts");
|
|
8
|
-
const RegisterFormWrapper = ({ onSuccess,
|
|
7
|
+
const RegisterFormWrapper = ({ onSuccess, componentProps = {}, }) => {
|
|
9
8
|
const { register } = (0, contexts_1.useAuth)();
|
|
10
|
-
const
|
|
11
|
-
const { routes, timezones } = (0, contexts_1.useSuiteConfig)();
|
|
9
|
+
const { timezones } = (0, contexts_1.useSuiteConfig)();
|
|
12
10
|
const handleSubmit = async (values) => {
|
|
13
11
|
const result = await register(values.username, values.email, values.timezone || 'UTC', values.password, values.mnemonic, values.displayName);
|
|
14
12
|
if ('error' in result) {
|