feat: QR 조회 버튼 노출 조건 분기 처리
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user