@@ -5,6 +5,8 @@ import TableCell from "@mui/material/TableCell";
5
5
import TableContainer from "@mui/material/TableContainer" ;
6
6
import TableHead from "@mui/material/TableHead" ;
7
7
import TableRow from "@mui/material/TableRow" ;
8
+ import LoadingButton from "@mui/lab/LoadingButton" ;
9
+ import visuallyHidden from "@mui/utils/visuallyHidden" ;
8
10
import { type FC , useState , useCallback , useEffect } from "react" ;
9
11
import { useQuery } from "react-query" ;
10
12
import { externalAuthProvider } from "api/queries/externalAuth" ;
@@ -25,8 +27,7 @@ import {
25
27
ThreeDotsButton ,
26
28
} from "components/MoreMenu/MoreMenu" ;
27
29
import { ExternalAuthPollingState } from "pages/CreateWorkspacePage/CreateWorkspacePage" ;
28
- import LoadingButton from "@mui/lab/LoadingButton" ;
29
- import visuallyHidden from "@mui/utils/visuallyHidden" ;
30
+ import { TableEmpty } from "components/TableEmpty/TableEmpty" ;
30
31
31
32
export type ExternalAuthPageViewProps = {
32
33
isLoading : boolean ;
@@ -71,13 +72,7 @@ export const ExternalAuthPageView: FC<ExternalAuthPageViewProps> = ({
71
72
</ TableHead >
72
73
< TableBody >
73
74
{ ( ( auths . providers === null || auths . providers ?. length === 0 ) && (
74
- < TableRow >
75
- < TableCell colSpan = { 999 } >
76
- < div css = { { textAlign : "center" } } >
77
- No providers have been configured!
78
- </ div >
79
- </ TableCell >
80
- </ TableRow >
75
+ < TableEmpty message = "No providers have been configured" />
81
76
) ) ||
82
77
auths . providers ?. map ( ( app : ExternalAuthLinkProvider ) => {
83
78
return (
0 commit comments