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

Commitb3accde

Browse files
committed
emotion:LoginPageView
1 parentf17fdb1 commitb3accde

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

‎site/src/pages/LoginPage/LoginPageView.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import{makeStyles}from"@mui/styles";
2-
import{FC}from"react";
1+
import{typeInterpolation,typeTheme}from"@emotion/react";
2+
import{typeFC}from"react";
33
import{useLocation}from"react-router-dom";
44
import{SignInForm}from"./SignInForm";
55
import{retrieveRedirect}from"utils/redirect";
66
import{CoderIcon}from"components/Icons/CoderIcon";
77
import{getApplicationName,getLogoURL}from"utils/appearance";
8-
import{AuthMethods}from"api/typesGenerated";
8+
importtype{AuthMethods}from"api/typesGenerated";
99

1010
exportinterfaceLoginPageViewProps{
1111
authMethods:AuthMethods|undefined;
@@ -22,7 +22,6 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
2222
})=>{
2323
constlocation=useLocation();
2424
constredirectTo=retrieveRedirect(location.search);
25-
conststyles=useStyles();
2625
// This allows messages to be displayed at the top of the sign in form.
2726
// Helpful for any redirects that want to inform the user of something.
2827
constinfo=newURLSearchParams(location.search).get("info")||undefined;
@@ -41,12 +40,12 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
4140
}}
4241
/>
4342
) :(
44-
<CoderIconfill="white"opacity={1}className={styles.icon}/>
43+
<CoderIconfill="white"opacity={1}css={styles.icon}/>
4544
);
4645

4746
return(
48-
<divclassName={styles.root}>
49-
<divclassName={styles.container}>
47+
<divcss={styles.root}>
48+
<divcss={styles.container}>
5049
{applicationLogo}
5150
<SignInForm
5251
authMethods={authMethods}
@@ -56,40 +55,40 @@ export const LoginPageView: FC<LoginPageViewProps> = ({
5655
info={info}
5756
onSubmit={onSignIn}
5857
/>
59-
<footerclassName={styles.footer}>
58+
<footercss={styles.footer}>
6059
Copyright ©{newDate().getFullYear()} Coder Technologies, Inc.
6160
</footer>
6261
</div>
6362
</div>
6463
);
6564
};
6665

67-
constuseStyles=makeStyles((theme)=>({
68-
root:{
66+
conststyles={
67+
root:(theme)=>({
6968
padding:theme.spacing(3),
7069
display:"flex",
7170
alignItems:"center",
7271
justifyContent:"center",
7372
minHeight:"100%",
7473
textAlign:"center",
75-
},
74+
}),
7675

77-
container:{
76+
container:(theme)=>({
7877
width:"100%",
7978
maxWidth:385,
8079
display:"flex",
8180
flexDirection:"column",
8281
alignItems:"center",
8382
gap:theme.spacing(2),
84-
},
83+
}),
8584

86-
icon:{
85+
icon:(theme)=>({
8786
fontSize:theme.spacing(8),
88-
},
87+
}),
8988

90-
footer:{
89+
footer:(theme)=>({
9190
fontSize:12,
9291
color:theme.palette.text.secondary,
9392
marginTop:theme.spacing(3),
94-
},
95-
}));
93+
}),
94+
}satisfiesRecord<string,Interpolation<Theme>>;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp