/*! ========================================================= * Argon Dashboard React - v1.2.4 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2024 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://github.com/creativetimofficial/argon-dashboard-react/blob/master/LICENSE.md) * Coded by Creative Tim ========================================================= * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */ import React from "react"; import { useLocation, Route, Routes, Navigate } from "react-router-dom"; // reactstrap components import { Container, Row, Col } from "reactstrap"; // core components import AuthNavbar from "components/Navbars/AuthNavbar.js"; import AuthFooter from "components/Footers/AuthFooter.js"; import routes from "routes.js"; const Auth = (props) => { const mainContent = React.useRef(null); const location = useLocation(); React.useEffect(() => { document.body.classList.add("bg-default"); return () => { document.body.classList.remove("bg-default"); }; }, []); React.useEffect(() => { document.documentElement.scrollTop = 0; document.scrollingElement.scrollTop = 0; mainContent.current.scrollTop = 0; }, [location]); const getRoutes = (routes) => { return routes.map((prop, key) => { if (prop.layout === "/auth") { return ( ); } else { return null; } }); }; return ( <>

Welcome!

Use these awesome forms to login or create new account in your project for free.

{/* Page content */} {getRoutes(routes)} } />
); }; export default Auth;