Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import { AuthProviders } from "../utils/AuthProviders.ts"; import { useGetLoginProvidersQuery } from "../../../store/features/auth/api/getLoginProvidersApi.ts"; import ForgotPasswordBox from "./ForgotPasswordBox.tsx"; import { Link } from "react-router-dom"; function LoginAdditionalData() { const { data } = useGetLoginProvidersQuery(); Iif (!data?.includes(AuthProviders.EMAIL)) return; return ( <div className="my-2"> <ForgotPasswordBox /> <div className="flex items-center gap-1 text-xs justify-center"> Don't have an account? <Link className="text-violet-500 hover:underline" to="/signup"> Sign up </Link> </div> </div> ); } export default LoginAdditionalData; |