feat: 세션 중, 끝났을 때 목표 표시
This commit is contained in:
@@ -49,7 +49,7 @@ export default function HomePage() {
|
||||
params.set("mode", mode);
|
||||
|
||||
if (goal && goal.trim().length > 0) {
|
||||
localStorage.setItem("goal", goal.trim());
|
||||
localStorage.setItem("hushroom:session-goal", goal.trim());
|
||||
}
|
||||
|
||||
router.push(`/session?${params.toString()}`);
|
||||
@@ -197,7 +197,7 @@ function SessionGoalDialog({
|
||||
value={goal}
|
||||
onChange={(e) => setGoal(e.target.value)}
|
||||
placeholder="목표를 입력하세요"
|
||||
className="text-lg border-[#2F6FED] focus-visible:ring-[#2F6FED] focus-visible:ring-1"
|
||||
className="text-lg"
|
||||
autoFocus
|
||||
/>
|
||||
<div className="text-xs text-slate-500">
|
||||
@@ -209,11 +209,7 @@ function SessionGoalDialog({
|
||||
<Button variant="ghost" onClick={() => onOpenChange(false)}>
|
||||
취소
|
||||
</Button>
|
||||
<Button
|
||||
onClick={onStart}
|
||||
className="rounded-xl bg-[#2F6FED]"
|
||||
disabled={!mode}
|
||||
>
|
||||
<Button onClick={onStart} className="rounded-xl" disabled={!mode}>
|
||||
시작하기
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
|
||||
Reference in New Issue
Block a user