File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function ErrorMessage(props: { imgSrc: string; imgAlt?: string; message: string
8
8
return (
9
9
< div className = "mt-16 flex space-x-2 py-6 px-6 w-96 justify-between bg-gitpod-kumquat-light rounded-xl" >
10
10
< div className = "pr-3 self-center w-6" >
11
- < img src = { props . imgSrc } alt = { props . imgAlt } />
11
+ < img src = { props . imgSrc } alt = { props . imgAlt || "An error message" } />
12
12
</ div >
13
13
< div className = "flex-1 flex flex-col" >
14
14
< p className = "text-gitpod-red text-sm" > { props . message } </ p >
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import moment from "moment";
19
19
import { UserContext } from "../user-context" ;
20
20
import { trackEvent } from "../Analytics" ;
21
21
import exclamation from "../images/exclamation.svg" ;
22
+ import ErrorMessage from "../components/ErrorMessage" ;
22
23
23
24
export default function NewProject ( ) {
24
25
const location = useLocation ( ) ;
@@ -744,16 +745,7 @@ function GitProviders(props: {
744
745
} ) }
745
746
</ div >
746
747
747
- { errorMessage && (
748
- < div className = "mt-16 flex space-x-2 py-6 px-6 w-96 justify-between bg-gitpod-kumquat-light rounded-xl" >
749
- < div className = "pr-3 self-center w-6" >
750
- < img src = { exclamation } />
751
- </ div >
752
- < div className = "flex-1 flex flex-col" >
753
- < p className = "text-gitpod-red text-sm" > { errorMessage } </ p >
754
- </ div >
755
- </ div >
756
- ) }
748
+ { errorMessage && < ErrorMessage imgSrc = { exclamation } message = { errorMessage } /> }
757
749
</ div >
758
750
</ div >
759
751
) ;
You can’t perform that action at this time.
0 commit comments