File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import prebuild from "./images/welcome/prebuild.svg";
23
23
import exclamation from "./images/exclamation.svg" ;
24
24
import { getURLHash } from "./App" ;
25
25
import FeedbackComponent from "./feedback-form/FeedbackComponent" ;
26
+ import ErrorMessage from "./components/ErrorMessage" ;
26
27
27
28
function Item ( props : { icon : string ; iconSize ?: string ; text : string } ) {
28
29
const iconSize = props . iconSize || 28 ;
@@ -226,17 +227,7 @@ export function Login() {
226
227
) )
227
228
) }
228
229
</ div >
229
-
230
- { errorMessage && (
231
- < div className = "mt-16 mb-10 flex space-x-2 py-6 px-6 w-96 justify-between bg-gitpod-kumquat-light rounded-xl" >
232
- < div className = "pr-3 self-center w-6" >
233
- < img src = { exclamation } />
234
- </ div >
235
- < div className = "flex-1 flex flex-col" >
236
- < p className = "text-gitpod-red text-sm" > { errorMessage } </ p >
237
- </ div >
238
- </ div >
239
- ) }
230
+ { errorMessage && < ErrorMessage imgSrc = { exclamation } message = { errorMessage } /> }
240
231
</ div >
241
232
</ div >
242
233
{ errorMessage && < FeedbackComponent message = { "Was this error message helpful?" } initialSize = { 24 } /> }
You can’t perform that action at this time.
0 commit comments