mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: Remove card in some forms.
This commit is contained in:
@@ -95,8 +95,6 @@ export const EmailForm = (props: EmailFormProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Card>
|
|
||||||
<CardContent>
|
|
||||||
<Form
|
<Form
|
||||||
form={form}
|
form={form}
|
||||||
className="flex flex-col gap-4 mt-3"
|
className="flex flex-col gap-4 mt-3"
|
||||||
@@ -182,23 +180,6 @@ export const EmailForm = (props: EmailFormProps) => {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<div className="flex justify-between gap-4">
|
<div className="flex justify-between gap-4">
|
||||||
|
|
||||||
{/*{props.defaultValues?.smtpFrom && (*/}
|
|
||||||
{/* <ButtonWithLoading*/}
|
|
||||||
{/* type="button"*/}
|
|
||||||
{/* isPending={mutationSendEmailTest.isPending}*/}
|
|
||||||
{/* onClick={async () => {*/}
|
|
||||||
{/* await mutationSendEmailTest.mutateAsync();*/}
|
|
||||||
{/* }}*/}
|
|
||||||
{/* icon={<Send/>}*/}
|
|
||||||
{/* size="default"*/}
|
|
||||||
{/* className="bg-green-600 hover:bg-green-700 text-white font-medium shadow-sm transition-all"*/}
|
|
||||||
|
|
||||||
{/* >Send email test</ButtonWithLoading>*/}
|
|
||||||
{/*)}*/}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{props.defaultValues?.smtpFrom && (
|
{props.defaultValues?.smtpFrom && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
@@ -227,14 +208,13 @@ export const EmailForm = (props: EmailFormProps) => {
|
|||||||
)}
|
)}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
|
<div className="flex justify-end">
|
||||||
<Button
|
<Button type="submit">
|
||||||
type="submit"
|
Save
|
||||||
>Save</Button>
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -57,15 +57,11 @@ export const AgentForm = (props: agentFormProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TooltipProvider>
|
<TooltipProvider>
|
||||||
<Card>
|
|
||||||
<CardContent>
|
|
||||||
<Form
|
<Form
|
||||||
form={form}
|
form={form}
|
||||||
className="flex flex-col gap-4 mt-3"
|
className="flex flex-col gap-4"
|
||||||
onSubmit={async (values) => {
|
onSubmit={async (values) => {
|
||||||
await mutation.mutateAsync(values);
|
await mutation.mutateAsync(values);
|
||||||
}}
|
}}
|
||||||
@@ -101,10 +97,13 @@ export const AgentForm = (props: agentFormProps) => {
|
|||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<Button>{isCreate ? `Create agent` : `Save agent`}</Button>
|
<div className="flex justify-end">
|
||||||
|
<Button type="submit">
|
||||||
|
{isCreate ? "Create" : "Update"}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -78,9 +78,6 @@ export const ProjectForm = (props: projectFormProps) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
|
||||||
<CardHeader></CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<Form
|
<Form
|
||||||
form={form}
|
form={form}
|
||||||
className="flex flex-col gap-4"
|
className="flex flex-col gap-4"
|
||||||
@@ -124,9 +121,11 @@ export const ProjectForm = (props: projectFormProps) => {
|
|||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<Button>{isCreate ? `Create Project` : `Update Project`}</Button>
|
<div className="flex justify-end">
|
||||||
|
<Button type="submit">
|
||||||
|
{isCreate ? "Create" : "Update"}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user