Skip to content

Commit

Permalink
TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iandebruin98 committed Dec 5, 2024
1 parent e70123b commit bbce86f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function BegrootmoduleDisplay(
</FormControl>
<SelectContent>
{tagGroupNames?.map((item, index) => (
<SelectItem value={item}>
<SelectItem value={item} key={index}>
{item}
</SelectItem>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default function BegrootmoduleText(
name="budgetChosenTitle"
render={({ field }) => (
<FormItem className="col-span-1">
<FormLabel>'Gekozen' tekst</FormLabel>
<FormLabel>&apos;Gekozen&apos; tekst</FormLabel>
<FormDescription>Hier komt informatie bij te staan over hoeveel er al is gekozen.</FormDescription>
<FormControl>
<Input
Expand All @@ -327,7 +327,7 @@ export default function BegrootmoduleText(
name="budgetRemainingTitle"
render={({ field }) => (
<FormItem className="col-span-1">
<FormLabel>'Nog over' tekst</FormLabel>
<FormLabel>&apos;Nog over&apos; tekst</FormLabel>
<FormDescription>Hier komt informatie bij te staan over hoeveel er nog gekozen kan worden.</FormDescription>
<FormControl>
<Input
Expand Down
8 changes: 4 additions & 4 deletions packages/stem-begroot/src/stem-begroot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,13 @@ function StemBegroot({
) : null}

{currentStep === 2 ? (
<Step3 loginUrl={`${props?.login?.url}`} step3={props.step3} stemCodeTitle={props.stemCodeTitle} />
<Step3 loginUrl={`${props?.login?.url}`} step3={props.step3 || ''} stemCodeTitle={props.stemCodeTitle} />
) : null}

{currentStep === 3 ? (
<Step3Success
loginUrl={`${props?.login?.url}`}
step3success={props.step3success}
step3success={props.step3success || ''}
stemCodeTitleSuccess={props.stemCodeTitleSuccess}
/>
) : null}
Expand All @@ -664,8 +664,8 @@ function StemBegroot({
{currentStep === 4 ? (
<Step4
loginUrl={`${props?.login?.url}`}
thankMessage={props.thankMessage}
voteMessage={props.voteMessage}
thankMessage={props.thankMessage || ''}
voteMessage={props.voteMessage || ''}
showNewsletterButton={props.showNewsletterButton}
newsLetterTitle={props.newsLetterTitle}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export const StemBegrootResourceDetailDialog = ({
center={resource.location}
map={{'areaId': areaId}}
/>
} else {
return <></>;
}
}}

Expand Down

0 comments on commit bbce86f

Please sign in to comment.