This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from quayside-app/switch-projects
When you switch projects the URL also changes
- Loading branch information
Showing
5 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import TreeGraph from '../../components/Graph' | ||
|
||
/** | ||
* Renders a page component that displays the tree graph with a dynamic route | ||
* | ||
* @param {Object} props - The props passed to the page component. | ||
* @param {Object} props.params - The route parameters object. | ||
* @param {string} props.params.projectIds - The IDs of the project. | ||
* @returns {ReactElement} A React element that represents the page, displaying | ||
* the project IDs and a TreeGraph component for the project. | ||
*/ | ||
export default function page ({ params }) { | ||
return ( | ||
<div> | ||
|
||
Project: {params.projectIds} | ||
<TreeGraph projectID={params.projectIds} /> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import TreeGraph from '../components/Graph' | ||
|
||
export default function Home () { | ||
return ( | ||
<main className='flex flex-wrap w-full flex-col items-center'> | ||
<div className='flex w-full flex-wrap items-center'> | ||
<div className='w-full'><TreeGraph /></div> | ||
|
||
Create or Select a project. | ||
</div> | ||
|
||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters