-
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.
[dashboard] Implement Team selector and creation wizard
- Loading branch information
1 parent
4850f7c
commit ce2d778
Showing
18 changed files
with
273 additions
and
104 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
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
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
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,22 @@ | ||
/** | ||
* Copyright (c) 2021 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 { Link } from "react-router-dom"; | ||
|
||
export default function PillMenuItem(p: { | ||
name: string, | ||
selected: boolean, | ||
link?: string, | ||
onClick?: (event: React.MouseEvent) => void | ||
}) { | ||
const classes = 'flex block text-sm font-medium dark:text-gray-200 px-3 px-0 py-1.5 rounded-md transition ease-in-out ' + | ||
(p.selected | ||
? 'bg-gray-200 dark:bg-gray-700' | ||
: 'text-gray-600 hover:bg-gray-100 dark:hover:bg-gray-800'); | ||
return ((!p.link || p.link.startsWith('https://')) | ||
? <a className={classes} href={p.link} onClick={p.onClick}>{p.name}</a> | ||
: <Link className={classes} to={p.link} onClick={p.onClick}>{p.name}</Link>); | ||
} |
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,22 @@ | ||
/** | ||
* Copyright (c) 2021 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 { Link } from "react-router-dom"; | ||
|
||
export default function TabMenuItem(p: { | ||
name: string, | ||
selected: boolean, | ||
link?: string, | ||
onClick?: (event: React.MouseEvent) => void | ||
}) { | ||
const classes = 'cursor-pointer py-2 px-4 border-b-4 border-transparent transition ease-in-out ' + | ||
(p.selected | ||
? 'text-gray-600 dark:text-gray-400 border-gray-700 dark:border-gray-400' | ||
: 'text-gray-400 dark:text-gray-600 hover:border-gray-400 dark:hover:border-gray-600'); | ||
return ((!p.link || p.link.startsWith('https://')) | ||
? <a className={classes} href={p.link} onClick={p.onClick}>{p.name}</a> | ||
: <Link className={classes} to={p.link} onClick={p.onClick}>{p.name}</Link>); | ||
} |
Oops, something went wrong.