forked from cerc-io/snowballtools-base
* Remove unused methods from backend utils * Set project name from repo organization and name when creating project * Rename success and project components according to routes
28 lines
524 B
TypeScript
28 lines
524 B
TypeScript
import React from 'react';
|
|
|
|
import NewProject from './index';
|
|
import CreateWithTemplate from './Template';
|
|
import { templateRoutes } from './template/routes';
|
|
import Id from './success/Id';
|
|
import Import from './Import';
|
|
|
|
export const createProjectRoutes = [
|
|
{
|
|
index: true,
|
|
element: <NewProject />,
|
|
},
|
|
{
|
|
path: 'template',
|
|
element: <CreateWithTemplate />,
|
|
children: templateRoutes,
|
|
},
|
|
{
|
|
path: 'success/:id',
|
|
element: <Id />,
|
|
},
|
|
{
|
|
path: 'import',
|
|
element: <Import />,
|
|
},
|
|
];
|