From 9e96ca7cea870eaaa0b594e04a5b1c9acdddcda4 Mon Sep 17 00:00:00 2001 From: George Tsiolis Date: Wed, 4 Aug 2021 09:03:25 +0000 Subject: [PATCH] Update authorization step layout in onboarding flow --- components/dashboard/src/icons/NoAccess.svg | 1 + .../dashboard/src/projects/NewProject.tsx | 23 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 components/dashboard/src/icons/NoAccess.svg diff --git a/components/dashboard/src/icons/NoAccess.svg b/components/dashboard/src/icons/NoAccess.svg new file mode 100644 index 00000000000000..7e34d7af7c4e15 --- /dev/null +++ b/components/dashboard/src/icons/NoAccess.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/components/dashboard/src/projects/NewProject.tsx b/components/dashboard/src/projects/NewProject.tsx index 93feae206811b1..d4e718398170ae 100644 --- a/components/dashboard/src/projects/NewProject.tsx +++ b/components/dashboard/src/projects/NewProject.tsx @@ -14,6 +14,7 @@ import ContextMenu, { ContextMenuEntry } from "../components/ContextMenu"; import CaretDown from "../icons/CaretDown.svg"; import Plus from "../icons/Plus.svg"; import Switch from "../icons/Switch.svg"; +import NoAccess from "../icons/NoAccess.svg"; import search from "../icons/search.svg"; import moment from "moment"; import { UserContext } from "../user-context"; @@ -250,16 +251,18 @@ export default function NewProject() {
); - const renderEmptyState = () => (
-
-
-

- Continue on GitHub + const renderEmptyState = () => (
+
+
+ +

+ No Access

- - Install the GitHub app on selected Repositories to continue. + + Authorize GitHub (github.com) or select a different account. - +
+
) @@ -272,8 +275,6 @@ export default function NewProject() { } return (<> -

Select Repository

- {(loaded && empty) ? renderEmptyState() : (showGitProviders ? () : renderRepos())} ) }; @@ -321,7 +322,7 @@ export default function NewProject() { return (

New Project

-

Projects allow you to set up and acess Prebuilds.

+

Select a git repository.

{!selectedRepo && renderSelectRepository()}