Skip to content

Commit

Permalink
fix: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kallen-ledger committed Jan 20, 2025
1 parent 7be5941 commit 5873e3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const swapCustomHandlers = ({
"custom.getTransactionByHash": getTransactionByHash(accounts),
"custom.saveSwapToHistory": saveSwapToHistory(accounts, dispatch),
"custom.swapRedirectToHistory": swapRedirectToHistory(navigation),
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import { usePTXCustomHandlers } from "~/components/WebPTXPlayer/CustomHandlers";
import { accountsSelector } from "~/reducers/accounts";
import { swapCustomHandlers } from "../customHandlers";
import { useNavigation } from "@react-navigation/native";
import { SwapFormNavigatorParamList } from "~/components/RootNavigator/types/SwapFormNavigator";
import { StackNavigatorNavigation } from "~/components/RootNavigator/types/helpers";

export function useSwapLiveAppCustomHandlers(manifest: LiveAppManifest) {
const accounts = useSelector(accountsSelector);
const ptxCustomHandlers = usePTXCustomHandlers(manifest, accounts);
const dispatch = useDispatch();
const navigation =
useNavigation();
const navigation = useNavigation<StackNavigatorNavigation<SwapFormNavigatorParamList>>();

return useMemo<WalletAPICustomHandlers>(
() =>
Expand All @@ -24,6 +25,6 @@ export function useSwapLiveAppCustomHandlers(manifest: LiveAppManifest) {
navigation,
}),
}) as WalletAPICustomHandlers,
[ptxCustomHandlers, accounts, dispatch],
[ptxCustomHandlers, accounts, dispatch, navigation],
);
}

0 comments on commit 5873e3f

Please sign in to comment.