숫자 괄호 학습 준비의 play 폴더 위치 변경

This commit is contained in:
2026-05-30 17:16:53 +09:00
parent f3d051cdd1
commit e0d8fc19d5
5 changed files with 17 additions and 13 deletions
@@ -124,7 +124,7 @@ export default function NumberParenthesesClient() {
<div>
<Link
ref={startLinkRef}
href={`/play?count=${selectedProblemCount}`}
href={`/number-parentheses/play?count=${selectedProblemCount}`}
onClick={() => initSession(selectedProblemCount)}
className="inline-flex h-12 items-center justify-center rounded-md bg-emerald-700 px-6 text-base font-semibold text-white transition hover:bg-emerald-800 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2"
>
@@ -27,11 +27,13 @@ function parseAnswer(value: string) {
return Number(trimmed);
}
interface PlayClientProps {
interface NumberPlayClientProps {
problemCount: ProblemCount;
}
export default function PlayClient({ problemCount }: PlayClientProps) {
export default function NumberPlayClient({
problemCount,
}: NumberPlayClientProps) {
const session = useGameStore((state) => state.session);
const selectedProblemCount = useGameStore(
(state) => state.selectedProblemCount,
@@ -1,7 +1,7 @@
import PlayClient from "./PlayClient";
import NumberPlayClient from "./NumberPlayClient";
import type { ProblemCount } from "@/store/gameStore";
interface PlayPageProps {
interface NumberPlayPageProps {
searchParams?: {
count?: string | string[];
};
@@ -15,6 +15,8 @@ function parseProblemCount(count?: string | string[]): ProblemCount {
return count === "5" ? 5 : 10;
}
export default function PlayPage({ searchParams }: PlayPageProps) {
return <PlayClient problemCount={parseProblemCount(searchParams?.count)} />;
export default function NumberPlayPage({ searchParams }: NumberPlayPageProps) {
return (
<NumberPlayClient problemCount={parseProblemCount(searchParams?.count)} />
);
}