Connect, collaborate, and grow with a community of TypeScript developers
cleanup (#766)
bautistaaae5a0a4bc81fd
diff --git a/apps/admin/src/components/navigation.tsx b/apps/admin/src/components/navigation.tsxindex e13165fc..9bd1d7fe 100644--- a/apps/admin/src/components/navigation.tsx+++ b/apps/admin/src/components/navigation.tsx@@ -27,8 +27,8 @@ export function Navigation() {><rect width="38" height="38" rx="4.5" fill="#3178C6" /><path- fill-rule="evenodd"- clip-rule="evenodd"+ fillRule="evenodd"+ clipRule="evenodd"d="M15.6947 20.9344H20V18H8V20.9344H12.2842V34H15.6947V20.9344Z"fill="white"/>diff --git a/apps/og-image/app/components/logo.tsx b/apps/og-image/app/components/logo.tsxindex 1f432a5c..cd82c8f1 100644--- a/apps/og-image/app/components/logo.tsx+++ b/apps/og-image/app/components/logo.tsx@@ -13,8 +13,8 @@ export function Logo() {fill="#3178C6"/><path- fill-rule="evenodd"- clip-rule="evenodd"+ fillRule="evenodd"+ clipRule="evenodd"d="M239.78 284.082H304V243H125V284.082H188.906V467H239.78V284.082Z"fill="white"/>diff --git a/apps/og-image/app/components/logo3d.tsx b/apps/og-image/app/components/logo3d.tsxindex 244921e2..f567785f 100644--- a/apps/og-image/app/components/logo3d.tsx+++ b/apps/og-image/app/components/logo3d.tsx@@ -11,8 +11,8 @@ export function Logo3d() {<rect width="637.029" height="637.029" rx="68.1096" fill="#3178C6" /></g><path- fill-rule="evenodd"- clip-rule="evenodd"+ fillRule="evenodd"+ clipRule="evenodd"d="M275.704 313.881H354.636V262.692H134.631V313.881H213.176V541.802H275.704V313.881Z"fill="white"/>diff --git a/apps/web/.gitignore b/apps/web/.gitignoreindex 3cf37bc9..c18c1577 100644--- a/apps/web/.gitignore+++ b/apps/web/.gitignore@@ -5,4 +5,5 @@/test-results//playwright-report//playwright/.cache/-/playwright/.auth/\ No newline at end of file+/playwright/.auth/+.verceldiff --git a/apps/web/src/app/[locale]/_components/hero.tsx b/apps/web/src/app/[locale]/_components/hero.tsxindex 83ad9eaa..9e93175f 100644--- a/apps/web/src/app/[locale]/_components/hero.tsx+++ b/apps/web/src/app/[locale]/_components/hero.tsx@@ -15,8 +15,8 @@ function TypeHeroLogo() {><rect width="38" height="38" rx="4.5" fill="#3178C6" /><path- fill-rule="evenodd"- clip-rule="evenodd"+ fillRule="evenodd"+ clipRule="evenodd"d="M15.6947 20.9344H20V18H8V20.9344H12.2842V34H15.6947V20.9344Z"fill="white"/>diff --git a/apps/web/src/app/providers.tsx b/apps/web/src/app/providers.tsxindex 04df2a37..8c513ba9 100644--- a/apps/web/src/app/providers.tsx+++ b/apps/web/src/app/providers.tsx@@ -1,15 +1,15 @@'use client';-import { VercelToolbar } from '@vercel/toolbar/next';import { SessionProvider } from '@repo/auth/react';import { TooltipProvider } from '@repo/ui/components/tooltip';import { QueryClient, QueryClientProvider } from '@tanstack/react-query';import { ReactQueryDevtools } from '@tanstack/react-query-devtools';import { ThemeProvider } from 'next-themes';-import React from 'react';-import { FeatureFlagProvider } from './feature-flag-provider';+import React, { Suspense } from 'react';+import { Toolbar } from '~/components/toolbar';import { I18nProviderClient } from '~/locales/client';import en from '~/locales/en';+import { FeatureFlagProvider } from './feature-flag-provider';interface Props {children: React.ReactNode;@@ -18,8 +18,6 @@ interface Props {const queryClient = new QueryClient();export function Providers({ children }: Props) {- const shouldInjectToolbar = process.env.NODE_ENV === 'development';-return (<QueryClientProvider client={queryClient}><ReactQueryDevtools initialIsOpen={false} />@@ -30,7 +28,9 @@ export function Providers({ children }: Props) {<I18nProviderClient fallbackLocale={en}>{children}</I18nProviderClient></TooltipProvider></FeatureFlagProvider>- {shouldInjectToolbar ? <VercelToolbar /> : null}+ <Suspense>+ <Toolbar />+ </Suspense></ThemeProvider></SessionProvider></QueryClientProvider>diff --git a/apps/web/src/components/navigation.tsx b/apps/web/src/components/navigation.tsxindex abf9c198..48e1f7e1 100644--- a/apps/web/src/components/navigation.tsx+++ b/apps/web/src/components/navigation.tsx@@ -63,8 +63,8 @@ export function Navigation() {><rect width="38" height="38" rx="4.5" fill="#3178C6" /><path- fill-rule="evenodd"- clip-rule="evenodd"+ fillRule="evenodd"+ clipRule="evenodd"d="M15.6947 20.9344H20V18H8V20.9344H12.2842V34H15.6947V20.9344Z"fill="white"/>diff --git a/apps/web/src/components/toolbar.tsx b/apps/web/src/components/toolbar.tsxnew file mode 100644index 00000000..a6571c41--- /dev/null+++ b/apps/web/src/components/toolbar.tsx@@ -0,0 +1,6 @@+import { VercelToolbar } from '@vercel/toolbar/next';++export function Toolbar() {+ const shouldInjectToolbar = process.env.NODE_ENV === 'development';+ return shouldInjectToolbar ? <VercelToolbar /> : null;+}