feat: 修改翻译
This commit is contained in:
@@ -7,8 +7,7 @@ import { SidebarLeft } from './sidebar-left';
|
||||
|
||||
export default async function DashboardLayout({ children }: { children: React.ReactNode }) {
|
||||
const cookieStore = await cookies();
|
||||
const defaultOpen = cookieStore.get('sidebar:state')?.value === 'true';
|
||||
|
||||
const defaultOpen = cookieStore.get('sidebar:state')?.value !== 'false'; // 默认 true,除非明确为 'false'
|
||||
return (
|
||||
<SidebarProvider className='' defaultOpen={defaultOpen}>
|
||||
<SidebarLeft className='w-[288px] border-r-0 bg-transparent lg:flex' />
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
'use client';
|
||||
import EmailAuthForm from '@/app/auth/email/auth-form';
|
||||
import CloseSvg from '@/components/CustomIcon/icons/close.svg';
|
||||
import { Dialog, DialogContent, DialogTitle } from '@workspace/airo-ui/components/dialog';
|
||||
import Image from 'next/image';
|
||||
import {
|
||||
createContext,
|
||||
forwardRef,
|
||||
@@ -66,11 +64,7 @@ const LoginDialog = forwardRef<LoginDialogRef>((props, ref) => {
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogContent
|
||||
className='rounded-0 h-full w-full px-12 py-[4.5rem] sm:h-auto sm:w-[496px] sm:!rounded-[50px]'
|
||||
closeIcon={<Image src={CloseSvg} alt='close' />}
|
||||
closeClassName='right-[40px] top-[30px] font-bold text-black opacity-100 focus:ring-0 focus:ring-offset-0'
|
||||
>
|
||||
<DialogContent className='rounded-0 h-full w-full px-12 py-[4.5rem] sm:h-auto sm:w-[496px] sm:!rounded-[50px]'>
|
||||
<DialogTitle className='sr-only'>Login</DialogTitle>
|
||||
<div className='min-h-[524px]'>
|
||||
<EmailAuthForm hide={hide} isRedirect={isRedirect} />
|
||||
|
||||
Reference in New Issue
Block a user