Skip to content

Commit

Permalink
Merge pull request #1321 from trilitech/disable-email-auth
Browse files Browse the repository at this point in the history
Disable email auth
  • Loading branch information
serjonya-trili authored Jun 3, 2024
2 parents e8787c6 + 635e5a8 commit e5e713d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button, Divider, Flex, Text, VStack } from "@chakra-ui/react";

import { OnboardWithEmailButton } from "./OnboardWithEmailButton";
import { OnboardWithFacebookButton } from "./OnboardWithFacebookButton";
import { OnboardWithGoogleButton } from "./OnboardWithGoogleButton";
import { OnboardWithRedditButton } from "./OnboardWithRedditButton";
Expand Down Expand Up @@ -52,7 +51,7 @@ export const ConnectOrCreate = ({
<OnboardWithGoogleButton onAuth={closeModal} />
<OnboardWithFacebookButton onAuth={closeModal} />
<OnboardWithTwitterButton onAuth={closeModal} />
<OnboardWithEmailButton onAuth={closeModal} />
{/* <OnboardWithEmailButton onAuth={closeModal} /> */}
<OnboardWithRedditButton onAuth={closeModal} />
</Flex>
</VStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useOnboardWithSocial } from "./useOnboardWithSocial";
import { EmailIcon } from "../../../assets/icons";
import colors from "../../../style/colors";

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ import { IconButton } from "@chakra-ui/react";

import { useOnboardWithSocial } from "./useOnboardWithSocial";
import { TwitterIcon } from "../../../assets/icons";
import colors from "../../../style/colors";

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

return (
<IconButton
color="black"
_hover={{ color: "white", background: colors.gray[600] }}
aria-label="Twitter SSO"
data-testid="login-button-twitter"
icon={<TwitterIcon fill="currentColor" />}
Expand Down
8 changes: 8 additions & 0 deletions src/style/theme/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,15 @@ export const buttonTheme = defineStyleConfig({
background: "white",
borderWidth: "0",
borderRadius: "full",
_loading: {
color: "white",
background: colors.gray[600],
_hover: {
background: colors.gray[600],
},
},
_hover: {
color: "white",
background: colors.gray[600],
},
},
Expand Down

0 comments on commit e5e713d

Please sign in to comment.