Skip to content

Commit

Permalink
Add reserveTextWithMaterialType
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperbirch1 committed Apr 15, 2024
1 parent 5658543 commit 66d9353
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/apps/material/material.dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ export default {
defaultValue: "Reserve",
control: { type: "text" }
},
reserveTextWithMaterialTypeText: {
name: "Reserve",
defaultValue: "Reserve @materialType",
control: { type: "text" }
},
reservableFromAnotherLibraryText: {
name: "Reservable on another library",
defaultValue: "Ordered from another library.",
Expand Down
1 change: 1 addition & 0 deletions src/apps/material/material.entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ interface MaterialEntryTextProps {
reservationSuccesTitleText: string;
reserveBookText: string;
reserveText: string;
reserveTextWithMaterialTypeText: string;
reviewsText: string;
saveButtonText: string;
seeOnlineText: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const MaterialButtonPhysical: FC<MaterialButtonPhysicalProps> = ({
label={
size === "small"
? t("reserveText")
: `${t("reserveText")} ${manifestationMaterialType}`
: `${t("reserveTextWithMaterialTypeText", {
placeholders: { "@materialType": manifestationMaterialType }
})}`
}
buttonType="none"
variant="filled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const MaterialButtonReservableFromAnotherLibrary: FC<
label={
size === "small"
? t("reserveText")
: `${t("reserveText")} ${manifestationMaterialType}`
: `${t("reserveTextWithMaterialTypeText", {
placeholders: { "@materialType": manifestationMaterialType }
})}`
}
buttonType="none"
variant="filled"
Expand Down

0 comments on commit 66d9353

Please sign in to comment.