|  |  | 
 |  |  | import { | 
 |  |  |     useTranslate, | 
 |  |  |     useLogin, | 
 |  |  |     localStorageStore, | 
 |  |  |     useNotify, | 
 |  |  | } from 'react-admin'; | 
 |  |  | import { getSystemDicts } from "@/api/auth"; | 
 |  |  | import { useForm, Controller, useWatch, FormProvider, useFormContext } from "react-hook-form"; | 
 |  |  | import ProviderChoices from "./ProviderChoices"; | 
 |  |  | import Visibility from '@mui/icons-material/Visibility'; | 
 |  |  | 
 |  |  |     const username = watch('username'); | 
 |  |  |     const password = watch('password'); | 
 |  |  |     const tenantId = watch('tenantId'); | 
 |  |  |  | 
 |  |  |      | 
 |  |  |     useEffect(() => { | 
 |  |  |         if (tenantList.length > 0 && !tenantId) { | 
 |  |  |             const rememberTenantId = localStorage.getItem('remember_tenantId'); | 
 |  |  | 
 |  |  |     }, [tenantList, setValue]); | 
 |  |  |  | 
 |  |  |     const onSubmit = (data) => { | 
 |  |  |         getSystemDicts().then(data => { | 
 |  |  |             localStorage.setItem('sys_dicts', JSON.stringify(data)); | 
 |  |  |         }) | 
 |  |  |         setLoading(true); | 
 |  |  |         login( | 
 |  |  |             data, | 
 |  |  | 
 |  |  |                     </Button> | 
 |  |  |  | 
 |  |  |                 </Stack> | 
 |  |  |                 <Box mt={1} mb={1} sx={{ textAlign: 'center' }}>or</Box> | 
 |  |  |                 {/* <Box mt={1} mb={1} sx={{ textAlign: 'center' }}>or</Box> */} | 
 |  |  |  | 
 |  |  |                 <ProviderChoices type="LOG IN" /> | 
 |  |  |                 {/* <ProviderChoices type="LOG IN" /> */} | 
 |  |  |             </Box > | 
 |  |  |         </> | 
 |  |  |     ) |