* Added prisma to suggested extension in container * Added comments and authors on drawer with proper resolving * Fix lint * Fix console log * Fixed generated front graphql from rebase * Fixed right drawer width and shared in theme * Added date packages and tooltip * Added date utils and tests * Added comment thread components * Fixed comment chip * wip * wip 2 * - Added string typing for DateTime scalar - Refactored user in a recoil state and workspace using it - Added comment creation * Prepared EditableCell refactor * Fixed line height and tooltip * Fix lint
57 lines
1.5 KiB
TypeScript
57 lines
1.5 KiB
TypeScript
import { Navigate, Route, Routes } from 'react-router-dom';
|
|
|
|
import { RequireAuth } from './modules/auth/components/RequireAuth';
|
|
import { AppLayout } from './modules/ui/layout/AppLayout';
|
|
import { AuthCallback } from './pages/auth/AuthCallback';
|
|
import { Login } from './pages/auth/Login';
|
|
import { Companies } from './pages/companies/Companies';
|
|
import { Opportunities } from './pages/opportunities/Opportunities';
|
|
import { People } from './pages/people/People';
|
|
|
|
export function App() {
|
|
return (
|
|
<>
|
|
{
|
|
<AppLayout>
|
|
<Routes>
|
|
<Route
|
|
path="/"
|
|
element={
|
|
<RequireAuth>
|
|
<Navigate to="/people" replace />
|
|
</RequireAuth>
|
|
}
|
|
/>
|
|
<Route
|
|
path="/people"
|
|
element={
|
|
<RequireAuth>
|
|
<People />
|
|
</RequireAuth>
|
|
}
|
|
/>
|
|
<Route
|
|
path="/companies"
|
|
element={
|
|
<RequireAuth>
|
|
<Companies />
|
|
</RequireAuth>
|
|
}
|
|
/>
|
|
<Route
|
|
path="/opportunities"
|
|
element={
|
|
<RequireAuth>
|
|
<Opportunities />
|
|
</RequireAuth>
|
|
}
|
|
/>
|
|
<Route path="/auth/callback" element={<AuthCallback />} />
|
|
<Route path="/auth/login" element={<Login />} />
|
|
</Routes>
|
|
</AppLayout>
|
|
}
|
|
</>
|
|
);
|
|
}
|