@homefile/components-v2 2.24.9 → 2.24.11

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.
@@ -1270,7 +1270,8 @@
1270
1270
  "resendResetBt": "Resend Reset Password Link",
1271
1271
  "title1": "We just sent a message to ",
1272
1272
  "title2": " with a link to activate your account.",
1273
- "title3": "to reset your password."
1273
+ "title3": "to reset your password.",
1274
+ "backToLogin": "Back to Log In"
1274
1275
  },
1275
1276
  "valueMonitor": {
1276
1277
  "description": "Est Value of Property Added to Homefile",
@@ -1,2 +1,2 @@
1
1
  import { EmailValidationI } from '../../../interfaces';
2
- export declare const ResendResetPassword: ({ email, isLoading, handleResendBt, }: EmailValidationI) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ResendResetPassword: ({ email, isLoading, handleResendBt, handleBack }: EmailValidationI) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,6 @@ import { t } from 'i18next';
3
3
  import { chakra, Container, Text, Image, Center, Button, } from '@chakra-ui/react';
4
4
  import { BasePageWrapper, ButtonLoader, Logo } from '../..';
5
5
  import { ResendPassword } from '../../../assets/images';
6
- export const ResendResetPassword = ({ email, isLoading = false, handleResendBt, }) => {
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: 10, mx: 4, variant: "secondary", onClick: handleResendBt, isLoading: isLoading, spinner: _jsx(ButtonLoader, { isOutlined: true }), size: "onboarding", children: t('validation.resendResetBt') }) })] }) }));
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: handleBack, isLoading: isLoading, spinner: _jsx(ButtonLoader, { isOutlined: true }), size: "onboarding", children: t('validation.backToLogin') }) }))] }) }));
8
8
  };
@@ -2,4 +2,5 @@ export interface EmailValidationI {
2
2
  email: string;
3
3
  isLoading?: boolean;
4
4
  handleResendBt: () => void;
5
+ handleBack?: () => void;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.24.9",
3
+ "version": "2.24.11",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -1270,7 +1270,8 @@
1270
1270
  "resendResetBt": "Resend Reset Password Link",
1271
1271
  "title1": "We just sent a message to ",
1272
1272
  "title2": " with a link to activate your account.",
1273
- "title3": "to reset your password."
1273
+ "title3": "to reset your password.",
1274
+ "backToLogin": "Back to Log In"
1274
1275
  },
1275
1276
  "valueMonitor": {
1276
1277
  "description": "Est Value of Property Added to Homefile",
@@ -16,6 +16,7 @@ export const ResendResetPassword = ({
16
16
  email,
17
17
  isLoading = false,
18
18
  handleResendBt,
19
+ handleBack
19
20
  }: EmailValidationI) => {
20
21
  return (
21
22
  <BasePageWrapper>
@@ -53,7 +54,7 @@ export const ResendResetPassword = ({
53
54
  </Text>
54
55
  <Center>
55
56
  <Button
56
- mb={10}
57
+ mb={handleBack ? 5 : 10}
57
58
  mx={4}
58
59
  variant="secondary"
59
60
  onClick={handleResendBt}
@@ -64,6 +65,23 @@ export const ResendResetPassword = ({
64
65
  {t('validation.resendResetBt')}
65
66
  </Button>
66
67
  </Center>
68
+ {
69
+ handleBack && (
70
+ <Center>
71
+ <Button
72
+ mb={10}
73
+ mx={4}
74
+ variant="primary"
75
+ onClick={handleBack}
76
+ isLoading={isLoading}
77
+ spinner={<ButtonLoader isOutlined />}
78
+ size="onboarding"
79
+ >
80
+ {t('validation.backToLogin')}
81
+ </Button>
82
+ </Center>
83
+ )
84
+ }
67
85
  </Container>
68
86
  </BasePageWrapper>
69
87
  )
@@ -2,4 +2,5 @@ export interface EmailValidationI {
2
2
  email: string
3
3
  isLoading?: boolean
4
4
  handleResendBt: () => void
5
+ handleBack?: () => void
5
6
  }