Skip to content

Commit

Permalink
Merge pull request #723 from reload/DDFLSBP-274-align-fees-url
Browse files Browse the repository at this point in the history
Align fees url
  • Loading branch information
JacobArrow authored Nov 29, 2023
2 parents eba1dcf + e228a18 commit d2dd214
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apps/loan-list/modal/material-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const MaterialDetails: FC<MaterialDetailsProps & MaterialProps> = ({
>(null);

const t = useText();
const { ereolenMyPageUrl, feesPageUrl } = useUrls();
const { ereolenMyPageUrl, viewFeesAndCompensationRatesUrl } = useUrls();

if (!loan) {
return null;
Expand Down Expand Up @@ -131,7 +131,7 @@ const MaterialDetails: FC<MaterialDetailsProps & MaterialProps> = ({
{dueDate && materialIsOverdue(dueDate) && (
<div className="modal-details__warning">
<WarningBar
leftLink={feesPageUrl}
leftLink={viewFeesAndCompensationRatesUrl}
linkText={t("materialDetailsLinkToPageWithFeesText")}
overdueText={t("materialDetailsWarningLoanOverdueText")}
/>
Expand Down
6 changes: 5 additions & 1 deletion src/core/storybook/materialDetailsModalArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ export default {
defaultValue: "Renew your loan"
},
feesPageUrl: {
defaultValue: "/user/me/fees", // open source image of a red panda
defaultValue: "/user/me/fees",
control: { type: "text" }
},
viewFeesAndCompensationRatesUrl: {
defaultValue: "https://unsplash.com/photos/wd6YQy0PJt8", // open source image of a red panda
control: { type: "text" }
},
ereolenMyPageUrl: {
Expand Down

0 comments on commit d2dd214

Please sign in to comment.