feat: fix vite
This commit is contained in:
@@ -18,6 +18,7 @@ import { Languages, QrCode } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { toast } from 'react-toastify';
|
||||
import { useTheme } from '@kevisual/components/theme/index.tsx';
|
||||
import { isSky } from '../basename';
|
||||
|
||||
type LayoutMainProps = {
|
||||
title?: React.ReactNode;
|
||||
@@ -112,15 +113,18 @@ export const LayoutMain = (props: LayoutMainProps) => {
|
||||
</div>
|
||||
</div>
|
||||
<div className='mr-4 flex gap-4 items-center no-drag'>
|
||||
<div className='group relative'>
|
||||
<IconButton>
|
||||
<QrCode size={16} />
|
||||
</IconButton>
|
||||
<div className='absolute hidden group-hover:flex bg-white p-2 border shadow-md top-10 -left-15 w-40 z-[9999] flex-col items-center justify-center rounded-md'>
|
||||
<img src={QRCodePNG} alt='QR Code' />
|
||||
<div className='text-sm text-black'>逸闻设计</div>
|
||||
{!isSky && (
|
||||
<div className='group relative'>
|
||||
<IconButton>
|
||||
<QrCode size={16} />
|
||||
</IconButton>
|
||||
|
||||
<div className='absolute hidden group-hover:flex bg-white p-2 border shadow-md top-10 -left-15 w-40 z-[9999] flex-col items-center justify-center rounded-md'>
|
||||
<img src={QRCodePNG} alt='QR Code' />
|
||||
<div className='text-sm text-black'>逸闻设计</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div>
|
||||
<Tooltip title={currentLanguage === 'en' ? 'English' : 'Chinese'}>
|
||||
<IconButton onClick={handleClick} variant='contained'>
|
||||
|
||||
Reference in New Issue
Block a user