File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
site/src/pages/UserSettingsPage/ExternalAuthPage Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { useTheme } from "@emotion/react" ;
1
2
import CachedIcon from "@mui/icons-material/Cached" ;
2
3
import LoadingButton from "@mui/lab/LoadingButton" ;
3
4
import Badge from "@mui/material/Badge" ;
@@ -114,6 +115,7 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
114
115
onUnlinkExternalAuth,
115
116
onValidateExternalAuth,
116
117
} ) => {
118
+ const theme = useTheme ( ) ;
117
119
const name = app . display_name || app . id || app . type ;
118
120
const authURL = "/external-auth/" + app . id ;
119
121
@@ -161,8 +163,16 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({
161
163
< TableRow key = { app . id } >
162
164
< TableCell >
163
165
< AvatarData title = { name } avatar = { avatar } />
164
- { /* TODO: Style this! */ }
165
- { link ?. validate_error }
166
+ { link ?. validate_error && (
167
+ < >
168
+ < span
169
+ css = { { paddingLeft : "1em" , color : theme . palette . error . light } }
170
+ >
171
+ Error:{ " " }
172
+ </ span >
173
+ { link ?. validate_error }
174
+ </ >
175
+ ) }
166
176
</ TableCell >
167
177
< TableCell css = { { textAlign : "right" } } >
168
178
< LoadingButton
You can’t perform that action at this time.
0 commit comments