commit 1aabd62e30d238ccf12f9a6f0f767b2242e949e7
parent 23c42e568d3a9cc75f8fff1e7b9c83b447fd859f
Author: Florian Dold <florian@dold.me>
Date: Sun, 6 Apr 2025 23:22:32 +0200
formatting
Diffstat:
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/packages/web-util/src/forms/gana/accept-tos.stories.tsx b/packages/web-util/src/forms/gana/accept-tos.stories.tsx
@@ -1,6 +1,6 @@
/*
This file is part of GNU Taler
- (C) 2022 Taler Systems S.A.
+ (C) 2024-2025 Taler Systems S.A.
GNU Taler is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -19,12 +19,10 @@
* @author Sebastian Javier Marchano (sebasjm)
*/
-import { i18n, setupI18n, TalerFormAttributes } from "@gnu-taler/taler-util";
+import { i18n, setupI18n } from "@gnu-taler/taler-util";
import * as tests from "../../tests/hook.js";
import { DefaultForm } from "../forms-ui.js";
import { acceptTos } from "./accept-tos.js";
-import { h, VNode } from "preact";
-import { useState } from "preact/hooks";
setupI18n("en", {});
diff --git a/packages/web-util/src/forms/gana/accept-tos.ts b/packages/web-util/src/forms/gana/accept-tos.ts
@@ -29,6 +29,7 @@ const TALER_SCREEN_ID = 107;
function filterUndefined<T>(ar: Array<T | undefined>): Array<T> {
return ar.filter((a): a is T => !!a);
}
+
export type AcceptTermOfServiceContext = {
tos_url: string;
provider_name?: string;
@@ -77,7 +78,7 @@ export const acceptTos = (
label: "Download PDF version",
required: true,
media: "application/pdf",
- help: i18n.str`You must download to proceed`
+ help: i18n.str`You must download to proceed`,
},
{
type: "toggle",