Skip to content

Commit

Permalink
fix sign in types
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Dec 18, 2024
1 parent 0bb612d commit 5069af9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/auth-provider/auth-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface SignInOptions {
interface AuthContext {
isSigningIn: boolean;
isSignedIn: boolean;
signIn({ allowAllProviders }: SignInOptions): void;
signIn(options?: SignInOptions): void;
signOut(): void;
userData: null | UserData;
address: null | string;
Expand Down
10 changes: 4 additions & 6 deletions src/pages/choose-stacking-method/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { useQuery } from '@tanstack/react-query';

import { useAuth } from '@components/auth-provider/auth-provider';
import { useNavigate } from '@hooks/use-navigate';

Expand All @@ -16,7 +14,7 @@ export const usePooledStackingButton = (props: ChooseStackingMethodLayoutProps)

const onClick = () => {
if (!props.isSignedIn) {
signIn();
signIn({ allowAllProviders: true });
return;
}

Expand All @@ -35,7 +33,7 @@ export const useDirectStackingButton = (props: ChooseStackingMethodLayoutProps)

const onClick = () => {
if (!props.isSignedIn) {
signIn();
signIn({ allowAllProviders: true });
return;
}

Expand All @@ -53,7 +51,7 @@ export const useLiquidStackingButton = (props: ChooseStackingMethodLayoutProps)

const onClick = () => {
if (!props.isSignedIn) {
signIn();
signIn({ allowAllProviders: true });
return;
}

Expand All @@ -71,7 +69,7 @@ export function useLeatherSbtcBridgeButton(setUpdateModalOpen: (open: boolean) =
return {
onClick: async () => {
if (leatherNotDetectedOrNotSignedIn) {
signIn();
signIn({ allowAllProviders: true });
return;
}
try {
Expand Down

0 comments on commit 5069af9

Please sign in to comment.