From d0597010b9594b37379184857c59e16d8cb66854 Mon Sep 17 00:00:00 2001 From: literat Date: Mon, 18 Nov 2024 20:44:34 +0100 Subject: [PATCH] fixup! feat: introduce login page and login form --- src/components/Error/Error.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/Error/Error.tsx b/src/components/Error/Error.tsx index a6de541..f8f0832 100644 --- a/src/components/Error/Error.tsx +++ b/src/components/Error/Error.tsx @@ -1,22 +1,16 @@ import React from 'react'; import styles from './Error.module.scss'; -export default function Error({ error }: { error: unknown }) { - console.log(error); - +export default function Error({ error }: { error: string }) { if (!error) { return null; } - // @ts-expect-error -- Type '{}' is not assignable to type 'ReactNode'. - return
{error}
; - return (

Shoot! - {/* @ts-expect-error -- 'error' is of type 'unknown'.*/} - {error.message.replace('Error: ', '')} + {error}

);