mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-26 14:56:39 +00:00
💄 remove form description and format w/ prettier
This commit is contained in:
@@ -88,12 +88,13 @@ export default function CreateBlueprintForm({
|
|||||||
if (!isValid) return;
|
if (!isValid) return;
|
||||||
|
|
||||||
const res = await api
|
const res = await api
|
||||||
.put<
|
.put<AxiosResponse<CreateBlueprintResponse>>(
|
||||||
AxiosResponse<CreateBlueprintResponse>
|
`/org/${orgId}/blueprint/`,
|
||||||
>(`/org/${orgId}/blueprint/`, {
|
{
|
||||||
name: form.getValues("name"),
|
name: form.getValues("name"),
|
||||||
blueprint: form.getValues("contents")
|
blueprint: form.getValues("contents")
|
||||||
})
|
}
|
||||||
|
)
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
toast({
|
toast({
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
@@ -132,9 +133,6 @@ export default function CreateBlueprintForm({
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>{t("name")}</FormLabel>
|
<FormLabel>{t("name")}</FormLabel>
|
||||||
<FormDescription>
|
|
||||||
{t("blueprintNameDescription")}
|
|
||||||
</FormDescription>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input {...field} />
|
<Input {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user