diff --git a/frontend/casino/src/app/components/web3/DicePlayButton.tsx b/frontend/casino/src/app/components/web3/DicePlayButton.tsx index ebaa673..f111e2a 100644 --- a/frontend/casino/src/app/components/web3/DicePlayButton.tsx +++ b/frontend/casino/src/app/components/web3/DicePlayButton.tsx @@ -1,14 +1,16 @@ import {usePlayRoulette} from "../../web3/functions/Roulette/usePlayRoulette.ts"; import {FC, useEffect} from "react"; +import {usePlayCraps} from "../../web3/functions/Craps/usePlayCraps.ts"; interface DicePlayButtonProps { value: number onSuccess: (result: unknown) => void onLoading: () => void + secondValue: number } -export const DicePlayButton: FC = ({ value, onSuccess, onLoading }) => { - const { playRoulette, result, isLoading } = usePlayRoulette() +export const DicePlayButton: FC = ({ value, onSuccess, onLoading, secondValue }) => { + const { playCraps, result, isLoading } = usePlayCraps() useEffect(() => { if (result) onSuccess(result) @@ -19,7 +21,7 @@ export const DicePlayButton: FC = ({ value, onSuccess, onLo }, [isLoading]) return ( -