Skip to content

Commit 673bb7d

Browse files
committed
more cleanup
1 parent 6157a1d commit 673bb7d

File tree

4 files changed

+3
-40
lines changed

4 files changed

+3
-40
lines changed

src/components/BoardWrapper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface BoardContextState extends BoardPropsWithReload {
1414
export const BoardContext = createContext({} as BoardContextState);
1515
export const useBoardContext = () => useContext(BoardContext);
1616

17-
export const BoardWrapper = (props: BoardPropsWithReload) => {
17+
export const BoardWrapper = (props: BoardPropsWithReload): JSX.Element => {
1818
const [currAction, setCurrAction] = useState("");
1919
const [displayCover, setDisplayCover] = useState(props.G.gamemode === "p");
2020
const timerRef = useRef() as React.MutableRefObject<TimerRefAttributes>;

src/components/Cell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface CellProps {
66
id: number;
77
}
88

9-
export const Cell = ({ id }: CellProps) => {
9+
export const Cell = ({ id }: CellProps): JSX.Element => {
1010
const { G, ctx, moves, currAction, timer } = useBoardContext();
1111
let className = "cell";
1212
let value: string | JSX.Element = "";

src/components/Timer.jsx

-37
This file was deleted.

src/components/Timer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface TimerRefAttributes {
1212
isRunning: () => boolean;
1313
}
1414

15-
export const Timer = forwardRef<TimerRefAttributes>((_, ref) => {
15+
export const Timer = forwardRef<TimerRefAttributes>((_, ref): JSX.Element => {
1616
const { ctx } = useBoardContext();
1717
const [time, setTime] = useState(0);
1818
const intervalRef = useRef<NodeJS.Timer | null>(null);

0 commit comments

Comments
 (0)