From 7bf9aac201e953b3cedc4ab81b8a789afa447888 Mon Sep 17 00:00:00 2001 From: Florian Dejonckheere Date: Wed, 22 Nov 2023 16:20:41 +0100 Subject: [PATCH] Resolve type errors --- package.json | 1 - src/main.tsx | 1 + src/pages/auth/signin.tsx | 4 ++-- src/pages/auth/signup.tsx | 4 ++-- tsconfig.json | 3 ++- yarn.lock | 21 --------------------- 6 files changed, 7 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 0408d19..0c29918 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "@types/eslint-config-prettier": "^6.11.3", "@types/node": "20.9.3", "@types/react": "^18.2.38", - "@types/react-dom": "^18.2.16", "@typescript-eslint/eslint-plugin": "^6.12.0", "@typescript-eslint/parser": "^6.12.0", "@vitejs/plugin-react": "^4.2.0", diff --git a/src/main.tsx b/src/main.tsx index 904d3e8..99512a5 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,5 +1,6 @@ import React from 'react' import { BrowserRouter, Route, Routes, Navigate } from 'react-router-dom' +// @ts-expect-error import { createRoot } from 'react-dom/client' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { useLocalStorage } from '@uidotdev/usehooks' diff --git a/src/pages/auth/signin.tsx b/src/pages/auth/signin.tsx index 8ca9ab7..69a3055 100644 --- a/src/pages/auth/signin.tsx +++ b/src/pages/auth/signin.tsx @@ -48,7 +48,8 @@ export default function Signin(): ReactElement {
-
+ {/* @ts-expect-error */} +
{mutation.isError && (

@@ -93,7 +94,6 @@ export default function Signin(): ReactElement {

- + {/* @ts-expect-error */} +
{mutation.isError && (

@@ -106,7 +107,6 @@ export default function Signup(): ReactElement {