@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
20 lines • 1.38 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const fuselage_1 = require("@rocket.chat/fuselage");
const layout_1 = require("@rocket.chat/layout");
const react_i18next_1 = require("react-i18next");
const FormPageLayout_1 = __importDefault(require("../../common/FormPageLayout"));
const CreateNewPassword_1 = __importDefault(require("../../forms/CreateNewPassword"));
const pageLayoutStyleProps = {
justifyContent: 'center',
};
const ResetPasswordPage = ({ onLogin, ...props }) => {
const { t } = (0, react_i18next_1.useTranslation)();
return ((0, jsx_runtime_1.jsxs)(FormPageLayout_1.default, { title: t('page.createPasswordPage.title'), styleProps: pageLayoutStyleProps, children: [(0, jsx_runtime_1.jsx)(CreateNewPassword_1.default, { ...props }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { fontScale: 'p2', pbs: 40, children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'component.wantToLogin', children: ["Want to log in?", (0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'p2', onClick: onLogin, children: "Go to login" })] }) })] }));
};
exports.default = ResetPasswordPage;
//# sourceMappingURL=CreateNewPasswordPage.js.map