diff options
author | Florian Dold <florian@dold.me> | 2024-03-07 19:27:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-07 19:27:41 +0100 |
commit | 983d14761eb1c33f4a59211b132f8485b7998bda (patch) | |
tree | 6f61f4ddf137233422b4f4e8cdcc810fa7538571 /packages/auditor-backoffice-ui/src/paths/instance | |
parent | b2864507bbd4e27a7d74fdcdf801b8eb34dbe3c4 (diff) | |
download | wallet-core-983d14761eb1c33f4a59211b132f8485b7998bda.tar.xz |
-rewards are gone!
Diffstat (limited to 'packages/auditor-backoffice-ui/src/paths/instance')
-rw-r--r-- | packages/auditor-backoffice-ui/src/paths/instance/reserves/details/RewardInfo.tsx | 22 |
1 files changed, 14 insertions, 8 deletions
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 <http://www.gnu.org/licenses/> */ -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 ( <Fragment> <div class="field is-horizontal"> @@ -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), + ) } /> </p> |