Skip to content

Commit

Permalink
funding: update award label
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 committed Jun 25, 2024
1 parent 78dfd57 commit 94eea26
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {
>
<TextField
label={i18next.t("Number")}
placeholder={i18next.t("Award number")}
placeholder={i18next.t("Award/Grant number")}
fieldPath="selectedFunding.award.number"
/>
</Overridable>
Expand All @@ -120,7 +120,7 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {
>
<TextField
label={i18next.t("Title")}
placeholder={i18next.t("Award Title")}
placeholder={i18next.t("Award/Grant Title")}
fieldPath="selectedFunding.award.title"
/>
</Overridable>
Expand All @@ -130,7 +130,7 @@ function CustomAwardForm({ deserializeFunder, selectedFunding }) {
>
<TextField
label={i18next.t("URL")}
placeholder={i18next.t("Award URL")}
placeholder={i18next.t("Award/Grant URL")}
fieldPath="selectedFunding.award.url"
/>
</Overridable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function FundingFieldForm(props) {
className="mb-5"
>
<Icon name="add" />
{i18next.t("Add award")}
{i18next.t("Add")}
</Button>
}
onAwardChange={(selectedFunding) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ function FundingModal({
>
<Modal.Header as="h2" className="pt-10 pb-10">
{mode === "standard"
? i18next.t("Add standard award")
: i18next.t("Add custom award")}
? i18next.t("Add standard award/grant")
: i18next.t("Add custom award/grant")}
</Modal.Header>
<Modal.Content>
{mode === ModalTypes.STANDARD && (
Expand All @@ -172,7 +172,7 @@ function FundingModal({
<Grid.Row>
<Grid.Column width={11} floated="left" verticalAlign="middle">
<SearchBar
placeholder={i18next.t("Search for awards")}
placeholder={i18next.t("Search for awards/grants")}
autofocus
actionProps={{
icon: "search",
Expand Down Expand Up @@ -234,9 +234,7 @@ function FundingModal({
primary
icon="checkmark"
content={
action === ModalActions.ADD
? i18next.t("Add award")
: i18next.t("Change award")
action === ModalActions.ADD ? i18next.t("Add") : i18next.t("Change")
}
/>
</Modal.Actions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export function NoAwardResults({ switchToCustom }) {
basic
content={
<p>
{i18next.t("Did not find your award? ")}
{i18next.t("Did not find your award/grant? ")}
<a
href="/"
onClick={(e) => {
e.preventDefault();
switchToCustom();
}}
>
{i18next.t("Add a custom award.")}
{i18next.t("Add a custom award/grant.")}
</a>
</p>
}
Expand Down

0 comments on commit 94eea26

Please sign in to comment.