Skip to content

Commit e5e713d

Browse files
Merge pull request #1321 from trilitech/disable-email-auth
Disable email auth
2 parents e8787c6 + 635e5a8 commit e5e713d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/components/Onboarding/connectOrCreate/ConnectOrCreate.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Button, Divider, Flex, Text, VStack } from "@chakra-ui/react";
22

3-
import { OnboardWithEmailButton } from "./OnboardWithEmailButton";
43
import { OnboardWithFacebookButton } from "./OnboardWithFacebookButton";
54
import { OnboardWithGoogleButton } from "./OnboardWithGoogleButton";
65
import { OnboardWithRedditButton } from "./OnboardWithRedditButton";
@@ -52,7 +51,7 @@ export const ConnectOrCreate = ({
5251
<OnboardWithGoogleButton onAuth={closeModal} />
5352
<OnboardWithFacebookButton onAuth={closeModal} />
5453
<OnboardWithTwitterButton onAuth={closeModal} />
55-
<OnboardWithEmailButton onAuth={closeModal} />
54+
{/* <OnboardWithEmailButton onAuth={closeModal} /> */}
5655
<OnboardWithRedditButton onAuth={closeModal} />
5756
</Flex>
5857
</VStack>

src/components/Onboarding/connectOrCreate/OnboardWithEmailButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useOnboardWithSocial } from "./useOnboardWithSocial";
44
import { EmailIcon } from "../../../assets/icons";
55
import colors from "../../../style/colors";
66

7+
// eslint-disable-next-line import/no-unused-modules
78
export const OnboardWithEmailButton = ({ onAuth }: { onAuth: () => void }) => {
89
const { isLoading, onboard } = useOnboardWithSocial("email", onAuth);
910

src/components/Onboarding/connectOrCreate/OnboardWithTwitterButton.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import { IconButton } from "@chakra-ui/react";
22

33
import { useOnboardWithSocial } from "./useOnboardWithSocial";
44
import { TwitterIcon } from "../../../assets/icons";
5-
import colors from "../../../style/colors";
65

76
export const OnboardWithTwitterButton = ({ onAuth }: { onAuth: () => void }) => {
87
const { isLoading, onboard } = useOnboardWithSocial("twitter", onAuth);
98

109
return (
1110
<IconButton
1211
color="black"
13-
_hover={{ color: "white", background: colors.gray[600] }}
1412
aria-label="Twitter SSO"
1513
data-testid="login-button-twitter"
1614
icon={<TwitterIcon fill="currentColor" />}

src/style/theme/button.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,15 @@ export const buttonTheme = defineStyleConfig({
142142
background: "white",
143143
borderWidth: "0",
144144
borderRadius: "full",
145+
_loading: {
146+
color: "white",
147+
background: colors.gray[600],
148+
_hover: {
149+
background: colors.gray[600],
150+
},
151+
},
145152
_hover: {
153+
color: "white",
146154
background: colors.gray[600],
147155
},
148156
},

0 commit comments

Comments
 (0)