Skip to content

Commit

Permalink
overridden: Use formatPrice from invenio-app-ils
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 committed Jan 23, 2024
1 parent 3dc1927 commit a556d41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
4 changes: 0 additions & 4 deletions ui/src/config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
export const config = {
APP: {
LOGO_SRC: null,
i18n: {
priceLocale: "fr-CH",
},
DEFAULT_CURRENCY: "CHF",
STATIC_PAGES: [
{ name: "about", route: "/about", apiURL: "1" },
{ name: "terms", route: "/terms", apiURL: "2" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { PaymentInformation } from "@inveniosoftware/react-invenio-app-ils";
import { formatPrice } from "../utils";
import { config } from "../../../config";
import {
PaymentInformation,
formatPrice,
} from "@inveniosoftware/react-invenio-app-ils";
import React from "react";
import { Icon, Popup } from "semantic-ui-react";
import { parametrize } from "react-overridable";
Expand All @@ -13,7 +14,7 @@ function leftPaymentInfoTable(order, type = "acquisition-order") {
}
return [
{
name: `Total (${config.APP.DEFAULT_CURRENCY})`,
name: `Total (${order.grand_total_main_currency.currency})`,
value: formatPrice(order.grand_total_main_currency) || "-",
},
{
Expand Down
20 changes: 0 additions & 20 deletions ui/src/overridden/backoffice/utils.js

This file was deleted.

0 comments on commit a556d41

Please sign in to comment.