summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/components/FormCTA.tsx
diff options
context:
space:
mode:
authorname <email@example.com>2023-09-27 13:34:23 +0200
committername <email@example.com>2023-09-27 13:34:23 +0200
commit72d8b4e6bee0ffac79e96dd649a9da2adb86b507 (patch)
tree8d1f37e5d88a598675b1a65128c35323c99825f5 /docusaurus/src/components/FormCTA.tsx
parentMerge pull request 'Please consider adding my instance' (#2) from superprivacy/wolfree-dockerfile:main into main (diff)
downloadwolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.gz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.bz2
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.lz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.xz
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.tar.zst
wolfree-dockerfile-72d8b4e6bee0ffac79e96dd649a9da2adb86b507.zip
Diffstat (limited to 'docusaurus/src/components/FormCTA.tsx')
-rw-r--r--docusaurus/src/components/FormCTA.tsx27
1 files changed, 12 insertions, 15 deletions
diff --git a/docusaurus/src/components/FormCTA.tsx b/docusaurus/src/components/FormCTA.tsx
index 1b5a81e..0912dec 100644
--- a/docusaurus/src/components/FormCTA.tsx
+++ b/docusaurus/src/components/FormCTA.tsx
@@ -1,23 +1,20 @@
-/**
- * @license
- * SPDX-License-Identifier: AGPL-3.0-or-later
- * This file is part of Wolfree.
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- */
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+import InputMathProblems from "./InputMathProblems";
import React from "react";
+import SubmitButton from "./SubmitButton";
import submitMathInputForm from "../functions/submitMathInputForm";
-import InputMathProblems from "./InputMathProblems";
-import ShowStepButton from "./ShowStepButton";
-const FormCTA = ({ autoFocus = Boolean() }) => (
+export default ({
+ autoFocus = false,
+ submitText = "",
+}: Readonly<{
+ autoFocus: boolean;
+ submitText: string;
+}>): React.JSX.Element => (
<form onSubmit={submitMathInputForm}>
+ <InputMathProblems autoFocus={autoFocus} defaultValue="" />
<p></p>
- <InputMathProblems autoFocus={autoFocus} />
- <p></p>
- <ShowStepButton />
- <p></p>
+ <SubmitButton text={submitText} />
</form>
);
-
-export default FormCTA;