status-web/apps/next/pages/_app.tsx

49 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-01-10 11:25:26 +00:00
import '@tamagui/core/reset.css'
import '@tamagui/font-inter/css/400.css'
import '@tamagui/font-inter/css/700.css'
2023-01-16 12:08:24 +00:00
import '../styles/reset.css'
import '../styles/app.css'
2023-01-10 11:25:26 +00:00
import Head from 'next/head'
2023-01-16 12:08:24 +00:00
import React from 'react'
2023-01-10 11:25:26 +00:00
import tamaguiConfig from '../tamagui.config'
import { AppProps } from 'next/app'
import { TamaguiProvider } from '@tamagui/core'
2023-01-16 12:08:24 +00:00
// import { NextThemeProvider, useRootTheme } from '@tamagui/next-theme'
// import { Provider } from 'app/provider'
// import type { SolitoAppProps } from 'solito'
function App({ Component, pageProps }: AppProps) {
2023-01-10 11:25:26 +00:00
return (
<>
<Head>
2023-01-16 12:08:24 +00:00
<title>Status</title>
2023-01-10 11:25:26 +00:00
<meta name="description" content="Tamagui, Solito, Expo & Next.js" />
<link rel="icon" href="/favicon.ico" />
</Head>
2023-01-16 12:08:24 +00:00
2023-01-10 11:25:26 +00:00
<TamaguiProvider config={tamaguiConfig}>
<Component {...pageProps} />
</TamaguiProvider>
</>
)
}
// function ThemeProvider({ children }: { children: React.ReactNode }) {
// const [theme, setTheme] = useRootTheme()
// return (
// <NextThemeProvider onChangeTheme={setTheme}>
// <Provider disableRootThemeClass defaultTheme={theme}>
// {children}
// </Provider>
// </NextThemeProvider>
// )
// }
2023-01-16 12:08:24 +00:00
export default App