Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TM-1580] Respect the label specified in the form builder. #767

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const RHFTreeSpeciesInput = (props: PropsWithChildren<RHFTreeSpeciesInputProps>)
return (
<TreeSpeciesInput
{...props}
title={t("Tree Species")}
title={t("Species")}
buttonCaptionSuffix={t("Species")}
withPreviousCounts={true}
useTaxonomicBackbone={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import InputWrapper, { InputWrapperProps } from "../InputElements/InputWrapper";

export interface TreeSpeciesInputProps extends Omit<InputWrapperProps, "error"> {
title: string;
label?: string;
buttonCaptionSuffix: string;
withNumbers?: boolean;
withPreviousCounts: boolean;
Expand Down Expand Up @@ -191,7 +192,7 @@ const TreeSpeciesInput = (props: TreeSpeciesInputProps) => {
return (
<InputWrapper
inputId={id}
label={"ADD TREE SPECIES"}
label={props.label ?? t("ADD TREE SPECIES")}
description={props.description}
containerClassName={props.containerClassName}
required={props.required}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Storyshots Components/Elements/Inputs/TreeSpeciesInput Default 1`] = `
data-testid="txt"
htmlFor=":r23:"
>
ADD TREE SPECIES *
Tree Species Grown *
</label>
<p
className="text-body-400 with-inner-html"
Expand Down Expand Up @@ -229,7 +229,7 @@ exports[`Storyshots Components/Elements/Inputs/TreeSpeciesInput With Number 1`]
data-testid="txt"
htmlFor=":r28:"
>
ADD TREE SPECIES *
Tree Species Grown *
</label>
<p
className="text-body-400 with-inner-html"
Expand Down
Loading