feat: QR 조회 버튼 노출 조건 분기 처리

This commit is contained in:
2025-06-26 14:18:38 +09:00
parent c667d5b0a1
commit 9779934f08
+11 -9
View File
@@ -305,11 +305,11 @@ function TypeMenuForm({ form, menuType }: TypeMenuFormProps) {
<TableRow>
<TableHead>QR코드</TableHead>
<TableCell className="border">
<div className="flex items-center gap-4">
<FormField
control={form.control}
name="qrcd"
render={({ field }) => (
<FormField
control={form.control}
name="qrcd"
render={({ field }) => (
<div className="flex items-center gap-4">
<FormItem>
<FormControl>
<RadioGroup
@@ -329,10 +329,12 @@ function TypeMenuForm({ form, menuType }: TypeMenuFormProps) {
</RadioGroup>
</FormControl>
</FormItem>
)}
/>
<QRCodeDialog url={form.watch("urlPath") ?? ""} />
</div>
{field.value === "Y" && (
<QRCodeDialog url={form.watch("urlPath") ?? ""} />
)}
</div>
)}
/>
</TableCell>
</TableRow>
<TableRow>