fix: button hydration 에러 수정
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { useState } from 'react';
|
||||
import type { GoalChip } from '@/entities/session';
|
||||
import { Button, Chip, GlassCard } from '@/shared/ui';
|
||||
|
||||
@@ -21,8 +20,6 @@ export const StartRitualWidget = ({
|
||||
onQuickEnter,
|
||||
onOpenCustomEntry,
|
||||
}: StartRitualWidgetProps) => {
|
||||
const [isGoalOpen, setGoalOpen] = useState(true);
|
||||
|
||||
return (
|
||||
<GlassCard elevated className="space-y-5 p-5 sm:p-6">
|
||||
<div>
|
||||
@@ -33,20 +30,6 @@ export const StartRitualWidget = ({
|
||||
</div>
|
||||
|
||||
<section className="space-y-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<label className="block text-xs font-medium uppercase tracking-[0.13em] text-white/65">
|
||||
한 줄 메모(선택)
|
||||
</label>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setGoalOpen((current) => !current)}
|
||||
className="text-xs text-white/62 transition hover:text-white"
|
||||
>
|
||||
{isGoalOpen ? '접기' : '펼치기'}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{isGoalOpen ? (
|
||||
<div className="space-y-3">
|
||||
<input
|
||||
value={goalInput}
|
||||
@@ -67,7 +50,6 @@ export const StartRitualWidget = ({
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
</section>
|
||||
|
||||
<section className="space-y-3">
|
||||
|
||||
Reference in New Issue
Block a user