Files
klz-cables.com/.pnpm-store/v10/files/33/9b1b57891345166abccdbdaa978828dc556476452cba7c86e5973caf6086167b76af22e033e8f6fb6a96b32e2f62647487a2a13a7cda397e3a47739cd93d73
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

72 lines
1.9 KiB
Plaintext

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Button, Link } from '@payloadcms/ui';
import { Translation } from '@payloadcms/ui/shared';
import { formatAdminURL } from 'payload/shared';
import React, { Fragment } from 'react';
import { FormHeader } from '../../elements/FormHeader/index.js';
import { ForgotPasswordForm } from './ForgotPasswordForm/index.js';
export const forgotPasswordBaseClass = 'forgot-password';
export function ForgotPasswordView({
initPageResult
}) {
const {
req: {
i18n,
payload: {
config
},
user
}
} = initPageResult;
const {
admin: {
routes: {
account: accountRoute,
login: loginRoute
}
},
routes: {
admin: adminRoute
}
} = config;
if (user) {
return /*#__PURE__*/_jsxs(Fragment, {
children: [/*#__PURE__*/_jsx(FormHeader, {
description: /*#__PURE__*/_jsx(Translation, {
elements: {
'0': ({
children
}) => /*#__PURE__*/_jsx(Link, {
href: formatAdminURL({
adminRoute,
path: accountRoute
}),
prefetch: false,
children: children
})
},
i18nKey: "authentication:loggedInChangePassword",
t: i18n.t
}),
heading: i18n.t('authentication:alreadyLoggedIn')
}), /*#__PURE__*/_jsx(Button, {
buttonStyle: "secondary",
el: "link",
size: "large",
to: adminRoute,
children: i18n.t('general:backToDashboard')
})]
});
}
return /*#__PURE__*/_jsxs(Fragment, {
children: [/*#__PURE__*/_jsx(ForgotPasswordForm, {}), /*#__PURE__*/_jsx(Link, {
href: formatAdminURL({
adminRoute,
path: loginRoute
}),
prefetch: false,
children: i18n.t('authentication:backToLogin')
})]
});
}
//# sourceMappingURL=index.js.map