feat: refactor user authentication and subscription dialogs for improved structure and consistency
This commit is contained in:
@@ -5,7 +5,7 @@ import { XiorError } from 'xior'
|
||||
|
||||
import { getUser } from '~/apis/news/get-user'
|
||||
import { userLoginRequest } from '~/apis/news/login-user'
|
||||
import { loginSchema, type TLoginSchema } from '~/layouts/news/form-login'
|
||||
import { loginSchema, type TLoginSchema } from '~/layouts/news/dialog-login'
|
||||
import { generateUserTokenCookie } from '~/utils/token'
|
||||
|
||||
import type { Route } from './+types/actions.login'
|
||||
|
||||
@@ -8,7 +8,7 @@ import { userRegisterRequest } from '~/apis/news/register-user'
|
||||
import {
|
||||
registerSchema,
|
||||
type TRegisterSchema,
|
||||
} from '~/layouts/news/form-register'
|
||||
} from '~/layouts/news/dialog-register'
|
||||
import { generateUserTokenCookie } from '~/utils/token'
|
||||
|
||||
import type { Route } from './+types/actions.register'
|
||||
|
||||
@@ -8,7 +8,7 @@ import { getUser } from '~/apis/news/get-user'
|
||||
import {
|
||||
subscribeSchema,
|
||||
type TSubscribeSchema,
|
||||
} from '~/layouts/news/form-subscribe-plan'
|
||||
} from '~/layouts/news/dialog-subscribe-plan'
|
||||
import { handleCookie } from '~/libs/cookies'
|
||||
|
||||
import type { Route } from './+types/actions.subscribe'
|
||||
|
||||
Reference in New Issue
Block a user