Skip to content

Commit

Permalink
Removed extra input for summary length, moved it to display
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan committed Jan 2, 2024
1 parent 776946f commit 3143b3d
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { useForm } from 'react-hook-form';
import * as z from 'zod';

const formSchema = z.object({
summaryCharLength: z.coerce.number(),
step1: z.string(),
step2: z.string(),
step2ButtonFeedback: z.string(),
Expand Down Expand Up @@ -59,8 +58,6 @@ export default function WidgetResourceOverviewInfo() {
excludeTheme: widget?.config?.[category]?.excludeTheme || '',
filterTheme: widget?.config?.[category]?.filterTheme || '',
filterResource: widget?.config?.[category]?.filterResource || '',

summaryCharLength: widget?.config?.[category]?.summaryCharLength || 30,
step1:
widget?.config?.[category]?.step1 ||
"Kies uit onderstaand overzicht jouw favoriete ontwerp voor de muurtekst 'Zorg goed voor onze stad en voor elkaar', en vul in de volgende stap je gegevens in.",
Expand Down Expand Up @@ -120,21 +117,6 @@ export default function WidgetResourceOverviewInfo() {
<form
onSubmit={form.handleSubmit(onSubmit)}
className="lg:w-1/2 grid grid-cols-1 lg:grid-cols-2 gap-4">
<FormField
control={form.control}
name="summaryCharLength"
render={({ field }) => (
<FormItem className="col-span-full">
<FormLabel>
Hoeveelheid karakters waar de samenvatting uit mag bestaan
</FormLabel>
<FormControl>
<Input type="number" {...field} />
</FormControl>
<FormMessage />
</FormItem>
)}
/>
<FormField
control={form.control}
name="step1"
Expand Down

0 comments on commit 3143b3d

Please sign in to comment.