File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { IconArrowsShuffle } from "@tabler/icons-react";
4
4
import { GetRecommendedPlayerAction } from "blackjack-strategy" ;
5
5
import _ from "lodash" ;
6
6
import { ReactNode , useEffect , useMemo , useState } from "react" ;
7
- import { useRecoilState } from "recoil" ;
8
7
import { STATE , State } from "../App" ;
9
8
import CardPicker from "../components/CardPicker" ;
10
9
import DealerItem from "../components/DealerItem" ;
@@ -2068,14 +2067,3 @@ export default function Blackjack() {
2068
2067
</ >
2069
2068
) ;
2070
2069
}
2071
-
2072
- function useKeyPress ( callback : ( event : KeyboardEvent ) => void ) {
2073
- const state = useRecoilState ( STATE ) ;
2074
-
2075
- useEffect ( ( ) => {
2076
- window . addEventListener ( "keydown" , callback ) ;
2077
- return ( ) => {
2078
- window . removeEventListener ( "keydown" , callback ) ;
2079
- } ;
2080
- } , [ state ] ) ;
2081
- }
You can’t perform that action at this time.
0 commit comments