Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cd4cc3

Browse files
committed
emotion:ExternalAuthSettingsPageView
1 parent0cbd32b commit3cd4cc3

File tree

1 file changed

+23
-26
lines changed

1 file changed

+23
-26
lines changed

‎site/src/pages/DeploySettingsPage/ExternalAuthSettingsPage/ExternalAuthSettingsPageView.tsx

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import{makeStyles}from"@mui/styles";
1+
import{css,useTheme}from"@emotion/react";
22
importTablefrom"@mui/material/Table";
33
importTableBodyfrom"@mui/material/TableBody";
44
importTableCellfrom"@mui/material/TableCell";
55
importTableContainerfrom"@mui/material/TableContainer";
66
importTableHeadfrom"@mui/material/TableHead";
77
importTableRowfrom"@mui/material/TableRow";
8-
import{DeploymentValues,ExternalAuthConfig}from"api/typesGenerated";
8+
importtype{DeploymentValues,ExternalAuthConfig}from"api/typesGenerated";
99
import{Alert}from"components/Alert/Alert";
1010
import{EnterpriseBadge}from"components/DeploySettingsLayout/Badges";
1111
import{Header}from"components/DeploySettingsLayout/Header";
@@ -18,7 +18,7 @@ export type ExternalAuthSettingsPageViewProps = {
1818
exportconstExternalAuthSettingsPageView=({
1919
config,
2020
}:ExternalAuthSettingsPageViewProps):JSX.Element=>{
21-
conststyles=useStyles();
21+
consttheme=useTheme();
2222

2323
return(
2424
<>
@@ -40,15 +40,32 @@ export const ExternalAuthSettingsPageView = ({
4040
}}
4141
/>
4242

43-
<divclassName={styles.description}>
43+
<div
44+
css={{
45+
marginTop:theme.spacing(3),
46+
marginBottom:theme.spacing(3),
47+
}}
48+
>
4449
<Alertseverity="info"actions={<EnterpriseBadgekey="enterprise"/>}>
4550
Integrating with multiple External authentication providers is an
4651
Enterprise feature.
4752
</Alert>
4853
</div>
4954

5055
<TableContainer>
51-
<TableclassName={styles.table}>
56+
<Table
57+
css={css`
58+
&td {
59+
padding-top:${theme.spacing(3)};
60+
padding-bottom:${theme.spacing(3)};
61+
}
62+
63+
&td:last-child,
64+
&th:last-child {
65+
padding-left:${theme.spacing(4)};
66+
}
67+
`}
68+
>
5269
<TableHead>
5370
<TableRow>
5471
<TableCellwidth="25%">ID</TableCell>
@@ -61,7 +78,7 @@ export const ExternalAuthSettingsPageView = ({
6178
config.external_auth?.length===0)&&(
6279
<TableRow>
6380
<TableCellcolSpan={999}>
64-
<divclassName={styles.empty}>
81+
<divcss={{textAlign:"center"}}>
6582
No providers have been configured!
6683
</div>
6784
</TableCell>
@@ -83,23 +100,3 @@ export const ExternalAuthSettingsPageView = ({
83100
</>
84101
);
85102
};
86-
87-
constuseStyles=makeStyles((theme)=>({
88-
table:{
89-
"& td":{
90-
paddingTop:theme.spacing(3),
91-
paddingBottom:theme.spacing(3),
92-
},
93-
94-
"& td:last-child, & th:last-child":{
95-
paddingLeft:theme.spacing(4),
96-
},
97-
},
98-
description:{
99-
marginTop:theme.spacing(3),
100-
marginBottom:theme.spacing(3),
101-
},
102-
empty:{
103-
textAlign:"center",
104-
},
105-
}));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp