mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: updates
This commit is contained in:
parent
d09c5fd171
commit
133881d287
28 changed files with 389 additions and 115 deletions
|
|
@ -4,13 +4,17 @@ import IpcRendererReact from '@/web/IpcRendererReact'
|
|||
import Layout from '@/web/components/New/Layout'
|
||||
import Devtool from '@/web/components/New/Devtool'
|
||||
import ErrorBoundary from '@/web/components/New/ErrorBoundary'
|
||||
import useIsMobile from '@/web/hooks/useIsMobile'
|
||||
import LayoutMobile from '@/web/components/New/LayoutMobile'
|
||||
|
||||
const App = () => {
|
||||
const isMobile = useIsMobile()
|
||||
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<div className='dark'>
|
||||
{window.env?.isEnableTitlebar && <TitleBar />}
|
||||
<Layout />
|
||||
{isMobile ? <LayoutMobile /> : <Layout />}
|
||||
<Toaster position='bottom-center' containerStyle={{ bottom: '5rem' }} />
|
||||
<IpcRendererReact />
|
||||
<Devtool />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue