@homefile/components-v2 2.24.10 → 2.24.12
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/assets/locales/en/index.json +1 -1
- package/dist/components/onboarding/pages/ResendResetPassword.js +1 -1
- package/dist/utils/Formaters.utils.js +1 -1
- package/package.json +1 -1
- package/src/assets/locales/en/index.json +1 -1
- package/src/components/onboarding/pages/ResendResetPassword.tsx +1 -1
- package/src/utils/Formaters.utils.ts +1 -1
|
@@ -1271,7 +1271,7 @@
|
|
|
1271
1271
|
"title1": "We just sent a message to ",
|
|
1272
1272
|
"title2": " with a link to activate your account.",
|
|
1273
1273
|
"title3": "to reset your password.",
|
|
1274
|
-
"backToLogin": "Back to
|
|
1274
|
+
"backToLogin": "Back to Log In"
|
|
1275
1275
|
},
|
|
1276
1276
|
"valueMonitor": {
|
|
1277
1277
|
"description": "Est Value of Property Added to Homefile",
|
|
@@ -4,5 +4,5 @@ import { chakra, Container, Text, Image, Center, Button, } from '@chakra-ui/reac
|
|
|
4
4
|
import { BasePageWrapper, ButtonLoader, Logo } from '../..';
|
|
5
5
|
import { ResendPassword } from '../../../assets/images';
|
|
6
6
|
export const ResendResetPassword = ({ email, isLoading = false, handleResendBt, handleBack }) => {
|
|
7
|
-
return (_jsx(BasePageWrapper, { children: _jsxs(Container, { size: "validation", boxShadow: "lg", children: [_jsxs(Container, { variant: "secondary", children: [_jsx(Logo, {}), _jsxs(Text, { variant: "title", textAlign: "center", px: ['container.sm', 'container.xl'], pb: 6, minH: "6rem", children: [_jsx(chakra.span, { color: "gray.3", children: t('validation.title1') }), _jsx(chakra.span, { color: "blue.2", children: email }), _jsx(Text, { variant: "title", children: t('validation.title3') })] }), _jsx(Center, { children: _jsx(Image, { src: ResendPassword, alt: "Activate account", h: ['100px', '145px'], w: "auto" }) })] }), _jsx(Text, { variant: "info", px: ['container.md', 'container.lg'], py: "2rem", textAlign: "center", children: t('validation.alert1') }), _jsx(Center, { children: _jsx(Button, { mb: handleBack ? 5 : 10, mx: 4, variant: "secondary", onClick: handleResendBt, isLoading: isLoading, spinner: _jsx(ButtonLoader, { isOutlined: true }), size: "onboarding", children: t('validation.resendResetBt') }) }), handleBack && (_jsx(Center, { children: _jsx(Button, { mb: 10, mx: 4, variant: "primary", onClick:
|
|
7
|
+
return (_jsx(BasePageWrapper, { children: _jsxs(Container, { size: "validation", boxShadow: "lg", children: [_jsxs(Container, { variant: "secondary", children: [_jsx(Logo, {}), _jsxs(Text, { variant: "title", textAlign: "center", px: ['container.sm', 'container.xl'], pb: 6, minH: "6rem", children: [_jsx(chakra.span, { color: "gray.3", children: t('validation.title1') }), _jsx(chakra.span, { color: "blue.2", children: email }), _jsx(Text, { variant: "title", children: t('validation.title3') })] }), _jsx(Center, { children: _jsx(Image, { src: ResendPassword, alt: "Activate account", h: ['100px', '145px'], w: "auto" }) })] }), _jsx(Text, { variant: "info", px: ['container.md', 'container.lg'], py: "2rem", textAlign: "center", children: t('validation.alert1') }), _jsx(Center, { children: _jsx(Button, { mb: handleBack ? 5 : 10, mx: 4, variant: "secondary", onClick: handleResendBt, isLoading: isLoading, spinner: _jsx(ButtonLoader, { isOutlined: true }), size: "onboarding", children: t('validation.resendResetBt') }) }), handleBack && (_jsx(Center, { children: _jsx(Button, { mb: 10, mx: 4, variant: "primary", onClick: handleBack, isLoading: isLoading, spinner: _jsx(ButtonLoader, { isOutlined: true }), size: "onboarding", children: t('validation.backToLogin') }) }))] }) }));
|
|
8
8
|
};
|
|
@@ -104,7 +104,7 @@ export const joinDayMonthYear = (value) => {
|
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
106
|
export const formatISODate = (value) => {
|
|
107
|
-
const displayValue = isValid(parseISO(value))
|
|
107
|
+
const displayValue = (isValid(parseISO(value)) || isValid(new Date(value)))
|
|
108
108
|
? format(value, 'MM/dd/yyyy')
|
|
109
109
|
: '';
|
|
110
110
|
return displayValue;
|
package/package.json
CHANGED
|
@@ -1271,7 +1271,7 @@
|
|
|
1271
1271
|
"title1": "We just sent a message to ",
|
|
1272
1272
|
"title2": " with a link to activate your account.",
|
|
1273
1273
|
"title3": "to reset your password.",
|
|
1274
|
-
"backToLogin": "Back to
|
|
1274
|
+
"backToLogin": "Back to Log In"
|
|
1275
1275
|
},
|
|
1276
1276
|
"valueMonitor": {
|
|
1277
1277
|
"description": "Est Value of Property Added to Homefile",
|
|
@@ -142,7 +142,7 @@ interface FormatCurrencyI {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export const formatISODate = (value: string) => {
|
|
145
|
-
const displayValue = isValid(parseISO(value))
|
|
145
|
+
const displayValue = (isValid(parseISO(value)) || isValid(new Date(value)))
|
|
146
146
|
? format(value, 'MM/dd/yyyy')
|
|
147
147
|
: ''
|
|
148
148
|
|