0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore(experience): move shared form components into components file (#6457)

This commit is contained in:
Xiao Yijun 2024-08-16 16:54:22 +08:00 committed by GitHub
parent 36f1055314
commit e9eb212f48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 8 additions and 12 deletions

View file

@ -3,10 +3,9 @@ import { useTranslation } from 'react-i18next';
import { Navigate } from 'react-router-dom';
import FocusedAuthPageLayout from '@/Layout/FocusedAuthPageLayout';
import IdentifierRegisterForm from '@/components/IdentifierRegisterForm';
import { identifierInputDescriptionMap } from '@/utils/form';
import IdentifierRegisterForm from '../Register/IdentifierRegisterForm';
import useIdentifierSignUpMethods from './use-identifier-sign-up-methods';
const IdentifierRegister = () => {

View file

@ -4,11 +4,10 @@ import { useTranslation } from 'react-i18next';
import { Navigate } from 'react-router-dom';
import FocusedAuthPageLayout from '@/Layout/FocusedAuthPageLayout';
import IdentifierSignInForm from '@/components/IdentifierSignInForm';
import PasswordSignInForm from '@/components/PasswordSignInForm';
import { identifierInputDescriptionMap } from '@/utils/form';
import IdentifierSignInForm from '../SignIn/IdentifierSignInForm';
import PasswordSignInForm from '../SignIn/PasswordSignInForm';
import useIdentifierSignInMethods from './use-identifier-sign-in-methods';
const IdentifierSignIn = () => {

View file

@ -8,6 +8,7 @@ import SingleSignOnFormModeContextProvider from '@/Providers/SingleSignOnFormMod
import SingleSignOnFormModeContext from '@/Providers/SingleSignOnFormModeContextProvider/SingleSignOnFormModeContext';
import Divider from '@/components/Divider';
import GoogleOneTap from '@/components/GoogleOneTap';
import IdentifierRegisterForm from '@/components/IdentifierRegisterForm';
import TextLink from '@/components/TextLink';
import SocialSignInList from '@/containers/SocialSignInList';
import TermsAndPrivacyCheckbox from '@/containers/TermsAndPrivacyCheckbox';
@ -17,7 +18,6 @@ import useTerms from '@/hooks/use-terms';
import ErrorPage from '../ErrorPage';
import IdentifierRegisterForm from './IdentifierRegisterForm';
import styles from './index.module.scss';
const RegisterFooter = () => {

View file

@ -1,11 +1,11 @@
import { type SignIn, type ExperienceSocialConnector, AgreeToTermsPolicy } from '@logto/schemas';
import IdentifierSignInForm from '@/components/IdentifierSignInForm';
import PasswordSignInForm from '@/components/PasswordSignInForm';
import SocialSignInList from '@/containers/SocialSignInList';
import TermsAndPrivacyCheckbox from '@/containers/TermsAndPrivacyCheckbox';
import useTerms from '@/hooks/use-terms';
import IdentifierSignInForm from './IdentifierSignInForm';
import PasswordSignInForm from './PasswordSignInForm';
import styles from './index.module.scss';
type Props = {

View file

@ -1,6 +1,5 @@
import SecondaryPageLayout from '@/Layout/SecondaryPageLayout';
import SingleSignOnForm from './SingleSignOnForm';
import SingleSignOnForm from '@/components/SingleSignOnForm';
const SingleSignOnEmail = () => {
return (

View file

@ -2,10 +2,9 @@ import { AgreeToTermsPolicy, experience } from '@logto/schemas';
import { useTranslation } from 'react-i18next';
import FocusedAuthPageLayout from '@/Layout/FocusedAuthPageLayout';
import SingleSignOnForm from '@/components/SingleSignOnForm';
import useTerms from '@/hooks/use-terms';
import SingleSignOnForm from '../SingleSignOnEmail/SingleSignOnForm';
const SingleSignOnLanding = () => {
const { t } = useTranslation();
const { agreeToTermsPolicy } = useTerms();