File tree 1 file changed +5
-7
lines changed
components/dashboard/src/components 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import FeedbackComponent from "../feedback-form/FeedbackComponent" ;
8
8
import { isGitpodIo } from "../utils" ;
9
+ import Alert from "./Alert" ;
9
10
10
11
function ErrorMessage ( props : { imgSrc : string ; imgAlt ?: string ; message : string } ) {
11
12
return (
12
13
< >
13
- < div className = "mt-16 flex space-x-2 py-6 px-6 w-96 justify-between bg-gitpod-kumquat-light rounded-xl" >
14
- < div className = "pr-3 self-center w-6" >
15
- < img src = { props . imgSrc } alt = { props . imgAlt || "An error message" } />
16
- </ div >
17
- < div className = "flex-1 flex flex-col" >
18
- < p className = "text-gitpod-red text-sm" > { props . message } </ p >
19
- </ div >
14
+ < div className = "space-y-4 mt-4" >
15
+ < Alert closable = { false } showIcon = { true } type = "error" >
16
+ < span > { props . message } </ span >
17
+ </ Alert >
20
18
</ div >
21
19
{ isGitpodIo ( ) && (
22
20
< FeedbackComponent
You can’t perform that action at this time.
0 commit comments