From b02c345d5f1846981fcf8b8b074a737172b97de5 Mon Sep 17 00:00:00 2001 From: isra el Date: Fri, 29 Mar 2024 07:06:01 +0300 Subject: [PATCH] fix(web): fix build error --- web/components/dashboard/ApiKeyList.tsx | 4 +++- web/components/dashboard/DeviceList.tsx | 3 +-- web/pages/reset-password.tsx | 8 +++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/web/components/dashboard/ApiKeyList.tsx b/web/components/dashboard/ApiKeyList.tsx index 118f17c..1d01dff 100644 --- a/web/components/dashboard/ApiKeyList.tsx +++ b/web/components/dashboard/ApiKeyList.tsx @@ -34,7 +34,9 @@ const ApiKeyRow = ({ apiKey }: any) => { {apiKey.status} - + diff --git a/web/components/dashboard/DeviceList.tsx b/web/components/dashboard/DeviceList.tsx index b1e2e88..badcf6e 100644 --- a/web/components/dashboard/DeviceList.tsx +++ b/web/components/dashboard/DeviceList.tsx @@ -29,8 +29,7 @@ const DeviceRow = ({ device, onDelete }: any) => { } - onDoubleClick={onDelete} - disabled + // onDoubleClick={onDelete} /> diff --git a/web/pages/reset-password.tsx b/web/pages/reset-password.tsx index d83627f..f6a0156 100644 --- a/web/pages/reset-password.tsx +++ b/web/pages/reset-password.tsx @@ -92,6 +92,8 @@ export default function LoginPage() { }) } + const colorModeValue = useColorModeValue('gray.50', 'gray.800') + if (resetSuccess) { return ( <> @@ -99,7 +101,7 @@ export default function LoginPage() { minH={'90vh'} align={'center'} justify={'center'} - bg={useColorModeValue('gray.50', 'gray.800')} + bg={colorModeValue} > Password reset successfully @@ -117,7 +119,7 @@ export default function LoginPage() { minH={'90vh'} align={'center'} justify={'center'} - bg={useColorModeValue('gray.50', 'gray.800')} + bg={colorModeValue} > @@ -127,7 +129,7 @@ export default function LoginPage() {