mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: remove commented code
This commit is contained in:
1 parent
abdef2531f
commit
2de2a2fb41
1 file changed
-40
@@ -65,43 +65,3 @@ const SwrTestConfig: React.FC = ({ children }) => {
|
||||
type renderParams = Parameters<typeof originalRender>
|
||||
export const render = ((ui: renderParams[0], options: renderParams[1]) =>
|
||||
originalRender(ui, { wrapper: SwrTestConfig, ...options })) as typeof originalRender
|
||||
|
||||
// function MyApp({ Component, pageProps }: AppPropsWithLayout) {
|
||||
// const [rootStore] = useState(() => new RootStore())
|
||||
|
||||
// useEffect(() => {
|
||||
// async function handleEmailVerificationError() {
|
||||
// const { error } = await auth.initialize()
|
||||
|
||||
// if (error?.message === GOTRUE_ERRORS.UNVERIFIED_GITHUB_USER) {
|
||||
// rootStore.ui.setNotification({
|
||||
// category: 'error',
|
||||
// message:
|
||||
// 'Please verify your email on GitHub first, then reach out to us at support@supabase.io to log into the dashboard',
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
|
||||
// handleEmailVerificationError()
|
||||
// }, [])
|
||||
|
||||
// const getLayout = Component.getLayout ?? ((page) => page)
|
||||
|
||||
// return (
|
||||
// <StoreProvider rootStore={rootStore}>
|
||||
// <FlagProvider>
|
||||
// <Head>
|
||||
// <title>Supabase</title>
|
||||
// <meta name="viewport" content="initial-scale=1.0, width=device-width" />
|
||||
// <link rel="stylesheet" type="text/css" href="/css/fonts.css" />
|
||||
// </Head>
|
||||
// <PageTelemetry>
|
||||
// <RouteValidationWrapper>
|
||||
// <AppBannerWrapper>{getLayout(<Component {...pageProps} />)}</AppBannerWrapper>
|
||||
// </RouteValidationWrapper>
|
||||
// </PageTelemetry>
|
||||
// <PortalToast />
|
||||
// </FlagProvider>
|
||||
// </StoreProvider>
|
||||
// )
|
||||
// }
|
||||
Reference in new issue
Block a user