-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new repo list/detail routes behind flag (#18918)
- Loading branch information
1 parent
ae05b2c
commit 3d899e5
Showing
4 changed files
with
59 additions
and
0 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
27 changes: 27 additions & 0 deletions
27
components/dashboard/src/repositories/detail/RepositoryDetail.tsx
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,27 @@ | ||
/** | ||
* Copyright (c) 2023 Gitpod GmbH. All rights reserved. | ||
* Licensed under the GNU Affero General Public License (AGPL). | ||
* See License.AGPL.txt in the project root for license information. | ||
*/ | ||
|
||
import { FC } from "react"; | ||
import Header from "../../components/Header"; | ||
import { useParams } from "react-router"; | ||
|
||
type PageRouteParams = { | ||
id: string; | ||
}; | ||
const RepositoryDetailPage: FC = () => { | ||
const { id } = useParams<PageRouteParams>(); | ||
|
||
return ( | ||
<> | ||
<Header title="Repository Detail" subtitle="" /> | ||
<div className="app-container"> | ||
<span>id: {id}</span> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default RepositoryDetailPage; |
18 changes: 18 additions & 0 deletions
18
components/dashboard/src/repositories/list/RepositoryList.tsx
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,18 @@ | ||
/** | ||
* Copyright (c) 2023 Gitpod GmbH. All rights reserved. | ||
* Licensed under the GNU Affero General Public License (AGPL). | ||
* See License.AGPL.txt in the project root for license information. | ||
*/ | ||
|
||
import { FC } from "react"; | ||
import Header from "../../components/Header"; | ||
|
||
const RepositoryListPage: FC = () => { | ||
return ( | ||
<> | ||
<Header title="Repositories" subtitle="" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default RepositoryListPage; |