mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
fix: error sheet context not found
This commit is contained in:
parent
4f9578ffce
commit
917815338d
@ -4,7 +4,7 @@ import { SelectField } from "@/components/ui/select";
|
|||||||
import { useZForm } from "@/hooks/useZForm";
|
import { useZForm } from "@/hooks/useZForm";
|
||||||
import { createDisclosure } from "@/lib/utils";
|
import { createDisclosure } from "@/lib/utils";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { ScrollView, Sheet, XStack } from "tamagui";
|
import { ScrollView, XStack } from "tamagui";
|
||||||
import { FormSchema, formSchema, typeOptions } from "../schema/form";
|
import { FormSchema, formSchema, typeOptions } from "../schema/form";
|
||||||
import { InputField } from "@/components/ui/input";
|
import { InputField } from "@/components/ui/input";
|
||||||
import FormField from "@/components/ui/form";
|
import FormField from "@/components/ui/form";
|
||||||
@ -45,9 +45,7 @@ const KeyForm = () => {
|
|||||||
>
|
>
|
||||||
<ErrorAlert mx="$4" mb="$4" error={saveMutation.error} />
|
<ErrorAlert mx="$4" mb="$4" error={saveMutation.error} />
|
||||||
|
|
||||||
<Sheet.ScrollView
|
<ScrollView contentContainerStyle={{ padding: "$4", pt: 0, gap: "$4" }}>
|
||||||
contentContainerStyle={{ padding: "$4", pt: 0, gap: "$4" }}
|
|
||||||
>
|
|
||||||
<FormField label="Label">
|
<FormField label="Label">
|
||||||
<InputField f={1} form={form} name="label" placeholder="Label..." />
|
<InputField f={1} form={form} name="label" placeholder="Label..." />
|
||||||
</FormField>
|
</FormField>
|
||||||
@ -65,7 +63,7 @@ const KeyForm = () => {
|
|||||||
) : type === "cert" ? (
|
) : type === "cert" ? (
|
||||||
<CertTypeInputFields form={form} />
|
<CertTypeInputFields form={form} />
|
||||||
) : null}
|
) : null}
|
||||||
</Sheet.ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
<XStack p="$4" gap="$4">
|
<XStack p="$4" gap="$4">
|
||||||
<Button flex={1} onPress={keyFormModal.onClose} bg="$colorTransparent">
|
<Button flex={1} onPress={keyFormModal.onClose} bg="$colorTransparent">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user