Skip to content

Commit 65cf2a5

Browse files
committed
emotion: ExternalAuth
1 parent f2d257c commit 65cf2a5

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

site/src/pages/CreateWorkspacePage/ExternalAuth.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import ReplayIcon from "@mui/icons-material/Replay";
22
import Button from "@mui/material/Button";
33
import FormHelperText from "@mui/material/FormHelperText";
44
import Tooltip from "@mui/material/Tooltip";
5-
import { makeStyles } from "@mui/styles";
5+
import { type FC } from "react";
66
import { LoadingButton } from "components/LoadingButton/LoadingButton";
77
import { Stack } from "components/Stack/Stack";
8-
import { FC } from "react";
98
import { type ExternalAuthPollingState } from "./CreateWorkspacePage";
109

1110
export interface ExternalAuthProps {
@@ -29,10 +28,6 @@ export const ExternalAuth: FC<ExternalAuthProps> = (props) => {
2928
error,
3029
} = props;
3130

32-
const styles = useStyles({
33-
error: typeof error !== "undefined",
34-
});
35-
3631
return (
3732
<Tooltip
3833
title={authenticated && `${displayName} has already been connected.`}
@@ -52,7 +47,7 @@ export const ExternalAuth: FC<ExternalAuthProps> = (props) => {
5247
/>
5348
}
5449
disabled={authenticated}
55-
className={styles.button}
50+
css={{ height: 52 }}
5651
color={error ? "error" : undefined}
5752
fullWidth
5853
onClick={(event) => {
@@ -80,9 +75,3 @@ export const ExternalAuth: FC<ExternalAuthProps> = (props) => {
8075
</Tooltip>
8176
);
8277
};
83-
84-
const useStyles = makeStyles(() => ({
85-
button: {
86-
height: 52,
87-
},
88-
}));

0 commit comments

Comments
 (0)