From 983d14761eb1c33f4a59211b132f8485b7998bda Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 7 Mar 2024 19:27:41 +0100 Subject: -rewards are gone! --- .../paths/instance/reserves/details/RewardInfo.tsx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'packages/auditor-backoffice-ui/src/paths') diff --git a/packages/auditor-backoffice-ui/src/paths/instance/reserves/details/RewardInfo.tsx b/packages/auditor-backoffice-ui/src/paths/instance/reserves/details/RewardInfo.tsx index 780068a91..491028695 100644 --- a/packages/auditor-backoffice-ui/src/paths/instance/reserves/details/RewardInfo.tsx +++ b/packages/auditor-backoffice-ui/src/paths/instance/reserves/details/RewardInfo.tsx @@ -13,12 +13,14 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see */ -import { stringifyRewardUri } from "@gnu-taler/taler-util"; import { format } from "date-fns"; import { Fragment, h, VNode } from "preact"; import { useBackendContext } from "../../../../context/backend.js"; import { MerchantBackend } from "../../../../declaration.js"; -import { datetimeFormatForSettings, useSettings } from "../../../../hooks/useSettings.js"; +import { + datetimeFormatForSettings, + useSettings, +} from "../../../../hooks/useSettings.js"; type Entity = MerchantBackend.Rewards.RewardDetails; @@ -28,10 +30,14 @@ interface Props { amount: string; } -export function RewardInfo({ id: merchantRewardId, amount, entity }: Props): VNode { - const { url: backendURL } = useBackendContext() +export function RewardInfo({ + id: merchantRewardId, + amount, + entity, +}: Props): VNode { + const { url: backendURL } = useBackendContext(); const [settings] = useSettings(); - const rewardURL = stringifyRewardUri({ merchantBaseUrl: backendURL, merchantRewardId }) + const rewardURL = "not-supported"; return (
@@ -74,9 +80,9 @@ export function RewardInfo({ id: merchantRewardId, amount, entity }: Props): VNo !entity.expiration || entity.expiration.t_s === "never" ? "never" : format( - entity.expiration.t_s * 1000, - datetimeFormatForSettings(settings), - ) + entity.expiration.t_s * 1000, + datetimeFormatForSettings(settings), + ) } />

-- cgit v1.2.3