Browse Source

fix(web): fix build error

pull/19/head
isra el 2 years ago
parent
commit
b02c345d5f
  1. 4
      web/components/dashboard/ApiKeyList.tsx
  2. 3
      web/components/dashboard/DeviceList.tsx
  3. 8
      web/pages/reset-password.tsx

4
web/components/dashboard/ApiKeyList.tsx

@ -34,7 +34,9 @@ const ApiKeyRow = ({ apiKey }: any) => {
<Td>{apiKey.status}</Td> <Td>{apiKey.status}</Td>
<Td> <Td>
<Tooltip label='Double Click to delete'> <Tooltip label='Double Click to delete'>
<DeleteIcon onDoubleClick={handleDelete} disabled/>
<DeleteIcon
// onDoubleClick={handleDelete}
/>
</Tooltip> </Tooltip>
</Td> </Td>
</Tr> </Tr>

3
web/components/dashboard/DeviceList.tsx

@ -29,8 +29,7 @@ const DeviceRow = ({ device, onDelete }: any) => {
<IconButton <IconButton
aria-label='Delete' aria-label='Delete'
icon={<DeleteIcon />} icon={<DeleteIcon />}
onDoubleClick={onDelete}
disabled
// onDoubleClick={onDelete}
/> />
</Tooltip> </Tooltip>
</Td> </Td>

8
web/pages/reset-password.tsx

@ -92,6 +92,8 @@ export default function LoginPage() {
}) })
} }
const colorModeValue = useColorModeValue('gray.50', 'gray.800')
if (resetSuccess) { if (resetSuccess) {
return ( return (
<> <>
@ -99,7 +101,7 @@ export default function LoginPage() {
minH={'90vh'} minH={'90vh'}
align={'center'} align={'center'}
justify={'center'} justify={'center'}
bg={useColorModeValue('gray.50', 'gray.800')}
bg={colorModeValue}
> >
<Stack pt={6}> <Stack pt={6}>
<Text align={'center'}>Password reset successfully</Text> <Text align={'center'}>Password reset successfully</Text>
@ -117,7 +119,7 @@ export default function LoginPage() {
minH={'90vh'} minH={'90vh'}
align={'center'} align={'center'}
justify={'center'} justify={'center'}
bg={useColorModeValue('gray.50', 'gray.800')}
bg={colorModeValue}
> >
<Stack spacing={8} mx={'auto'} maxW={'lg'} py={12} px={6}> <Stack spacing={8} mx={'auto'} maxW={'lg'} py={12} px={6}>
<Stack align={'center'}> <Stack align={'center'}>
@ -127,7 +129,7 @@ export default function LoginPage() {
</Stack> </Stack>
<Box <Box
rounded={'lg'} rounded={'lg'}
bg={useColorModeValue('white', 'gray.700')}
bg={colorModeValue}
boxShadow={'lg'} boxShadow={'lg'}
p={8} p={8}
> >

Loading…
Cancel
Save