- Introduced new components for the Forgot Password flow: EmailInput, OTPInput, OTPVerification, PasswordSetup, and ConfirmationMessage. - Implemented navigation updates in DashboardCard for project links. - Added a new decal image asset for the categories. - Updated sidebar assets to include decals. - Enhanced UserAuth page to include a link for forgotten passwords. - Created a dedicated ForgotPassword page to manage the entire password recovery process. - Added styles for the new Forgot Password components and updated existing styles for consistency.
33 lines
958 B
TypeScript
33 lines
958 B
TypeScript
import React, { useEffect } from "react";
|
|
import { Cache } from "three";
|
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
|
import Dashboard from "./pages/Dashboard";
|
|
import Project from "./pages/Project";
|
|
import UserAuth from "./pages/UserAuth";
|
|
import "./styles/main.scss";
|
|
import { LoggerProvider } from "./components/ui/log/LoggerContext";
|
|
import ForgotPassword from "./pages/ForgotPassword";
|
|
|
|
const App: React.FC = () => {
|
|
|
|
useEffect(() => {
|
|
Cache.clear();
|
|
Cache.enabled = true;
|
|
}, []);
|
|
|
|
return (
|
|
<LoggerProvider>
|
|
<Router>
|
|
<Routes>
|
|
<Route path="/" element={<UserAuth />} />
|
|
<Route path="/forgot" element={<ForgotPassword />} />
|
|
<Route path="/dashboard" element={<Dashboard />} />
|
|
<Route path="/projects/:projectId" element={<Project />} />
|
|
</Routes>
|
|
</Router>
|
|
</LoggerProvider>
|
|
);
|
|
};
|
|
|
|
export default App;
|