문제 풀이 화면에 [포기] 버튼 버튼 추가

This commit is contained in:
2026-05-30 18:07:15 +09:00
parent 503bad859e
commit 282e4d64cf
2 changed files with 16 additions and 0 deletions
@@ -1,5 +1,6 @@
"use client";
import Link from "next/link";
import { useCallback, useEffect, useRef, useState } from "react";
import type { FormEvent } from "react";
import { flushSync } from "react-dom";
@@ -196,6 +197,13 @@ export default function NumberPlayClient({
</h1>
</div>
<Link
href="/number-parentheses"
onClick={resetSession}
className="inline-flex h-10 items-center justify-center rounded-md bg-red-700 px-4 text-sm font-semibold text-white transition hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2"
>
</Link>
</div>
<div
@@ -1,5 +1,6 @@
"use client";
import Link from "next/link";
import { useEffect, useState } from "react";
import { flushSync } from "react-dom";
@@ -146,6 +147,13 @@ export default function VariablePlayClient({
</h1>
</div>
<Link
href="/variable-parentheses"
onClick={resetSession}
className="inline-flex h-10 items-center justify-center rounded-md bg-red-700 px-4 text-sm font-semibold text-white transition hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2"
>
</Link>
</div>
<div className="rounded-md bg-white px-6 pt-6 pb-4 shadow-sm ring-1 ring-slate-200 sm:p-8">