hide proxy on TXT

This commit is contained in:
oiov
2025-05-21 18:40:44 +08:00
parent 11d8f0d1d5
commit 72f76b8bca
2 changed files with 18 additions and 16 deletions
+17 -15
View File
@@ -379,21 +379,23 @@ export function RecordForm({
Optional. Time To Live.
</p>
</FormSectionColumns>
<FormSectionColumns title="Proxy">
<div className="flex w-full items-center gap-2">
<Label className="sr-only" htmlFor="proxy">
Proxy
</Label>
<Switch
id="proxied"
{...register("proxied")}
onCheckedChange={(value) => setValue("proxied", value)}
/>
</div>
<p className="p-1 text-[13px] text-muted-foreground">
Proxy status.
</p>
</FormSectionColumns>
{["A", "CNAME"].includes(currentRecordType) && (
<FormSectionColumns title="Proxy">
<div className="flex w-full items-center gap-2">
<Label className="sr-only" htmlFor="proxy">
Proxy
</Label>
<Switch
id="proxied"
{...register("proxied")}
onCheckedChange={(value) => setValue("proxied", value)}
/>
</div>
<p className="p-1 text-[13px] text-muted-foreground">
Proxy status.
</p>
</FormSectionColumns>
)}
</div>
{/* Action buttons */}
+1 -1
View File
File diff suppressed because one or more lines are too long