Skip to content

Commit

Permalink
Removed webbing from highline register
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosbodoke committed Feb 9, 2025
1 parent c3eed8a commit 2f85e49
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 50 deletions.
38 changes: 0 additions & 38 deletions components/CreateHighline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ const formSchema = z.object({
invalid_type_error: "Insira um número",
})
.positive("Comprimento não pode ser negativo"),
main_webbing: z.string().min(3, "Deve conter ao menos 3 caracteres"),
backup_webbing: z.string().min(3, "Deve conter ao menos 3 caracteres"),
description: z.string().optional(),
image: z
.any()
Expand Down Expand Up @@ -125,8 +123,6 @@ const CreateHighline = ({
name: "",
height: undefined,
length: undefined,
backup_webbing: "",
main_webbing: "",
image: "",
description: "",
},
Expand All @@ -136,8 +132,6 @@ const CreateHighline = ({
name,
height,
length,
main_webbing,
backup_webbing,
description,
image,
}: FormSchema) {
Expand Down Expand Up @@ -186,8 +180,6 @@ const CreateHighline = ({
name,
height,
length,
main_webbing,
backup_webbing,
description,
cover_image: imageID,
anchor_a: anchors?.anchorA
Expand Down Expand Up @@ -345,36 +337,6 @@ const CreateHighline = ({
</FormItem>
)}
/>
<FormField
control={highlineForm.control}
name="main_webbing"
render={({ field }) => (
<FormItem>
<FormLabel>{t("mainWebbing.label")}</FormLabel>
<FormControl>
<Input
placeholder={t("mainWebbing.placeholder")}
{...field}
/>
</FormControl>
</FormItem>
)}
/>
<FormField
control={highlineForm.control}
name="backup_webbing"
render={({ field }) => (
<FormItem>
<FormLabel>{t("backupWebbing.label")}</FormLabel>
<FormControl>
<Input
placeholder={t("backupWebbing.placeholder")}
{...field}
/>
</FormControl>
</FormItem>
)}
/>
<FormField
control={highlineForm.control}
name="description"
Expand Down
6 changes: 0 additions & 6 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"label": "Length",
"placeholder": "Highline length in meters"
},
"mainWebbing": {
"label": "Main webbing",
"placeholder": "E.g.: Lift 2be"
},
"backupWebbing": {
"label": "Backup webbing",
"placeholder": "E.g.: Lift 2be"
Expand Down Expand Up @@ -118,8 +114,6 @@
"label": "Informations",
"height": "Height",
"length": "Length",
"mainWebbing": "Main webbing",
"backupWebbing": "Backup webbing",
"meters": "meters"
},
"comments": "Comments",
Expand Down
6 changes: 0 additions & 6 deletions messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"label": "Comprimento",
"placeholder": "Comprimento do Highline em metros"
},
"mainWebbing": {
"label": "Fita principal",
"placeholder": "Exemplo: Sky 2 (Bera)"
},
"backupWebbing": {
"label": "Fita backup",
"placeholder": "Exemplo: Sky 2 (Bera) + Sky 3d (Bera)"
Expand Down Expand Up @@ -118,8 +114,6 @@
"label": "Informações",
"height": "Altura",
"length": "Comprimento",
"mainWebbing": "Fita principal",
"backupWebbing": "Fita backup",
"meters": "metros"
},
"comments": "Comentários",
Expand Down

0 comments on commit 2f85e49

Please sign in to comment.