summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/components/InputMathProblems.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/InputMathProblems.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/InputMathProblems.tsx')
-rw-r--r--docusaurus/src/components/InputMathProblems.tsx26
1 files changed, 13 insertions, 13 deletions
diff --git a/docusaurus/src/components/InputMathProblems.tsx b/docusaurus/src/components/InputMathProblems.tsx
index c7b49ce..27313d2 100644
--- a/docusaurus/src/components/InputMathProblems.tsx
+++ b/docusaurus/src/components/InputMathProblems.tsx
@@ -1,19 +1,15 @@
-/**
- * @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 React from "react";
import TextField from "@mui/material/TextField";
-// TextField API - Material UI
-// https://mui.com/material-ui/api/text-field/
-const InputMathProblems = ({
- autoFocus = Boolean(),
- defaultValue = String(),
-}) => (
+export default ({
+ autoFocus = false,
+ defaultValue = "",
+}: Readonly<{
+ autoFocus: boolean;
+ defaultValue: string;
+}>): React.JSX.Element => (
<TextField
name="i"
type="search"
@@ -30,4 +26,8 @@ const InputMathProblems = ({
/>
);
-export default InputMathProblems;
+// TextField API - Material UI
+// https://mui.com/material-ui/api/text-field/
+
+// <input>: The Input (Form Input) element - HTML: HyperText Markup Language | MDN
+// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input