Fix: web app theme intialization (#14761)

This commit is contained in:
KVOJJJin
2025-03-03 16:05:35 +08:00
committed by GitHub
parent 64e122c5f6
commit bb4e7da720
6 changed files with 12 additions and 59 deletions

View File

@@ -1,7 +1,6 @@
import React from 'react'
import type { FC } from 'react'
import type { Metadata } from 'next'
import { SharePageContextProvider } from '@/context/share-page-context'
export const metadata: Metadata = {
icons: 'data:,', // prevent browser from using default favicon
@@ -12,9 +11,7 @@ const Layout: FC<{
}> = ({ children }) => {
return (
<div className="min-w-[300px] h-full pb-[env(safe-area-inset-bottom)]">
<SharePageContextProvider>
{children}
</SharePageContextProvider>
{children}
</div>
)
}