+
-
);
};
-export default Dashboard;
+export default Home;
diff --git a/packages/frontend/src/pages/dashboard/CreateProject.tsx b/packages/frontend/src/pages/projects/CreateProject.tsx
similarity index 100%
rename from packages/frontend/src/pages/dashboard/CreateProject.tsx
rename to packages/frontend/src/pages/projects/CreateProject.tsx
diff --git a/packages/frontend/src/pages/dashboard/Project.tsx b/packages/frontend/src/pages/projects/Project.tsx
similarity index 100%
rename from packages/frontend/src/pages/dashboard/Project.tsx
rename to packages/frontend/src/pages/projects/Project.tsx
diff --git a/packages/frontend/src/pages/dashboard/routes.tsx b/packages/frontend/src/pages/projects/routes.tsx
similarity index 51%
rename from packages/frontend/src/pages/dashboard/routes.tsx
rename to packages/frontend/src/pages/projects/routes.tsx
index 1533321f..6a5ea20e 100644
--- a/packages/frontend/src/pages/dashboard/routes.tsx
+++ b/packages/frontend/src/pages/projects/routes.tsx
@@ -1,19 +1,9 @@
import React from 'react';
-import Projects from './Projects';
-import Project from './Project';
-import Settings from './Settings';
import CreateProject from './CreateProject';
+import Project from './Project';
-export const dashboardRoutes = [
- {
- path: '/',
- element:
,
- },
- {
- path: 'settings',
- element:
,
- },
+export const projectsRoutes = [
{
path: ':id',
element:
,
diff --git a/packages/frontend/src/pages/routes.tsx b/packages/frontend/src/pages/routes.tsx
new file mode 100644
index 00000000..1f82c111
--- /dev/null
+++ b/packages/frontend/src/pages/routes.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+
+import Projects from './Projects';
+import Settings from './Settings';
+import { projectsRoutes } from './projects/routes';
+
+export const homeRoutes = [
+ {
+ path: '/',
+ element:
,
+ },
+ {
+ path: 'settings',
+ element:
,
+ },
+ {
+ path: 'projects',
+ children: projectsRoutes,
+ },
+];
diff --git a/yarn.lock b/yarn.lock
index d2096e98..c30b9485 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10125,6 +10125,11 @@ react-error-overlay@^6.0.11:
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz"
integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==
+react-hook-form@^7.49.0:
+ version "7.49.0"
+ resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.49.0.tgz#9a91edfba6b6983d4b443653a9b225a780a42b3e"
+ integrity sha512-gf4qyY4WiqK2hP/E45UUT6wt3Khl49pleEVcIzxhLBrD6m+GMWtLRk0vMrRv45D1ZH8PnpXFwRPv0Pewske2jw==
+
react-is@^16.13.1:
version "16.13.1"
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"