fix: TypeScript build errors

This commit is contained in:
Alexej Wolff
2026-02-11 00:26:34 +01:00
parent cc003ffbd5
commit a9f0ab225b
5 changed files with 4 additions and 12 deletions
-7
View File
@@ -2,7 +2,6 @@ import { useState, useEffect, useRef } from "react";
import {
useParams,
Link,
useNavigate,
useSearchParams,
} from "react-router-dom";
import ReactMarkdown from "react-markdown";
@@ -103,7 +102,6 @@ function detectLocation(messages: ChatMessage[]): string {
export default function GamePage() {
const { id } = useParams<{ id: string }>();
const [searchParams] = useSearchParams();
const navigate = useNavigate();
const { isAuthenticated } = useAuth();
const [story, setStory] = useState<Story | null>(null);
const [session, setSession] = useState<GameSession | null>(null);
@@ -372,11 +370,6 @@ export default function GamePage() {
}
};
const handleQuickAction = (action: string) => {
setInput(action);
inputRef.current?.focus();
};
if (isInitialLoading) {
return (
<div className="game-page">