summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/components/InputMathProblems.tsx
diff options
context:
space:
mode:
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