From 3a1ab09b7f6c4d3fbcc9e8833351cc4a72aab0cf Mon Sep 17 00:00:00 2001 From: Mohamed Ghayyad Date: Wed, 17 Jan 2024 14:57:10 +0000 Subject: [PATCH] added Popover for doc --- src/components/AuthService.jsx | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/components/AuthService.jsx b/src/components/AuthService.jsx index 7c35f385e..12835b78c 100644 --- a/src/components/AuthService.jsx +++ b/src/components/AuthService.jsx @@ -1,5 +1,5 @@ import { isNotEmpty, useForm, isEmail } from '@mantine/form'; -import { PasswordInput, Text, TextInput, Button, Group, Box, Center, Select, JsonInput, Tooltip, Switch, Textarea, Grid } from '@mantine/core'; +import { PasswordInput, Text, TextInput, Button, Group, Box, Center, Select, JsonInput, Tooltip, Switch, Textarea, Grid, Popover, HoverCard } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { IconLock, IconCheck, IconAlertCircle, IconFaceIdError, IconEarOff, IconError404, IconTrashX, IconUserDown } from '@tabler/icons-react'; import { notifications } from '@mantine/notifications'; @@ -10,6 +10,7 @@ import { useEffect, useState } from 'react'; /** This component is using HID Authentication API End point to generate an access token to do various HID Authentication functions */ function AuthService() { const [visible, { toggle }] = useDisclosure(false); + const [opened, { close, open }] = useDisclosure(false); const vd = false; /** * Form for user input @@ -101,16 +102,27 @@ function AuthService() {
CheckedToken(event.currentTarget.checked)} /> +