@@ -103,9 +106,7 @@ const SetupDomain = () => {
color={isValid ? 'blue' : 'gray'}
type="submit"
>
-
-
^ Next
-
+
^ Next
);
diff --git a/packages/frontend/src/pages/projects/id/domain/add/Config.tsx b/packages/frontend/src/pages/projects/id/domain/add/Config.tsx
new file mode 100644
index 00000000..0a2b7d18
--- /dev/null
+++ b/packages/frontend/src/pages/projects/id/domain/add/Config.tsx
@@ -0,0 +1,49 @@
+import React from 'react';
+import { Link, useParams } from 'react-router-dom';
+import { Typography, Alert, Button } from '@material-tailwind/react';
+
+const Config = () => {
+ const { id } = useParams();
+
+ return (
+
+
+ Configure DNS
+
+ Add the following records to your domain
+
+
+
+
+
+ Type |
+ Name |
+ Value |
+
+
+ A |
+ @ |
+ 56.49.19.21 |
+
+
+ CNAME |
+ www |
+ cname.snowballtools.xyz |
+
+
+
+
+ ^It can take up to 48 hours for these updates to reflect
+ globally.
+
+
+
+
+
+
+ );
+};
+
+export default Config;
diff --git a/packages/frontend/src/pages/projects/id/domain/Add.tsx b/packages/frontend/src/pages/projects/id/domain/add/index.tsx
similarity index 74%
rename from packages/frontend/src/pages/projects/id/domain/Add.tsx
rename to packages/frontend/src/pages/projects/id/domain/add/index.tsx
index 22d6fa36..59be513f 100644
--- a/packages/frontend/src/pages/projects/id/domain/Add.tsx
+++ b/packages/frontend/src/pages/projects/id/domain/add/index.tsx
@@ -1,14 +1,12 @@
import React, { useMemo } from 'react';
-import { useParams, useNavigate, useLocation } from 'react-router-dom';
+import { useParams, useLocation, Outlet, Link } from 'react-router-dom';
import { Typography, IconButton } from '@material-tailwind/react';
-import Stepper from '../../../../components/Stepper';
-import SetupDomain from '../../../../components/projects/project/settings/SetupDomain';
+import Stepper from '../../../../../components/Stepper';
const AddDomain = () => {
const { id } = useParams();
const location = useLocation();
- const navigate = useNavigate();
const stepperValues = [
{
@@ -33,14 +31,11 @@ const AddDomain = () => {
Add Domain
-
- navigate(-1)}
- >
- X
-
+
+
+ X
+
+
@@ -55,7 +50,7 @@ const AddDomain = () => {
-
+
diff --git a/packages/frontend/src/pages/projects/id/domain/add/routes.tsx b/packages/frontend/src/pages/projects/id/domain/add/routes.tsx
new file mode 100644
index 00000000..95c38c16
--- /dev/null
+++ b/packages/frontend/src/pages/projects/id/domain/add/routes.tsx
@@ -0,0 +1,15 @@
+import React from 'react';
+
+import Config from './Config';
+import SetupDomain from '../../../../../components/projects/project/settings/SetupDomain';
+
+export const addDomainRoutes = [
+ {
+ index: true,
+ element:
,
+ },
+ {
+ path: 'config',
+ element:
,
+ },
+];
diff --git a/packages/frontend/src/pages/projects/routes.tsx b/packages/frontend/src/pages/projects/routes.tsx
index a6d65533..a247db98 100644
--- a/packages/frontend/src/pages/projects/routes.tsx
+++ b/packages/frontend/src/pages/projects/routes.tsx
@@ -2,8 +2,9 @@ import React from 'react';
import CreateProject from './Create';
import Project from './Project';
+import AddDomain from './id/domain/add';
import { createProjectRoutes } from './create/routes';
-import AddDomain from './id/domain/Add';
+import { addDomainRoutes } from './id/domain/add/routes';
export const projectsRoutesWithoutSearch = [
{
@@ -14,6 +15,7 @@ export const projectsRoutesWithoutSearch = [
{
path: ':id/domain/add',
element:
,
+ children: addDomainRoutes,
},
];