From 1dc84f5a5a2fa7d43a29354b4f14e244bda3f20f Mon Sep 17 00:00:00 2001 From: liuyu Date: Wed, 3 Jan 2024 10:57:53 +0000 Subject: [PATCH] remove useless file (#101) Co-authored-by: HEREYUA <1240335630@qq.com> Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/101 Reviewed-by: Lunny Xiao Co-authored-by: liuyu Co-committed-by: liuyu --- src/components/Subscribe/index.js | 6 +++--- src/components/Subscribe/style.module.css | 1 - src/utils/Toast.js | 0 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 src/utils/Toast.js diff --git a/src/components/Subscribe/index.js b/src/components/Subscribe/index.js index 9f207aa9..d7235b9b 100644 --- a/src/components/Subscribe/index.js +++ b/src/components/Subscribe/index.js @@ -3,8 +3,8 @@ import Input from "../Input" import Button from "../Button" import style from "./style.module.css" import clsx from "clsx" -import Alert from '@mui/material/Alert'; -import Snackbar from '@mui/material/Snackbar'; +import Alert from '@mui/material/Alert' +import Snackbar from '@mui/material/Snackbar' const Spinner = () => const Subscribe = ({placeholder, submitButtonText, className, classNameInputs}) => { const [loading, setLoading] = useState(false) @@ -41,7 +41,7 @@ const Subscribe = ({placeholder, submitButtonText, className, classNameInputs}) }) } function handleInputChange(event) { - const value = event.target.value; + const value = event.target.value setInputValue(value) } function handleClose (event, reason) { diff --git a/src/components/Subscribe/style.module.css b/src/components/Subscribe/style.module.css index 372d92d2..ee512904 100644 --- a/src/components/Subscribe/style.module.css +++ b/src/components/Subscribe/style.module.css @@ -65,7 +65,6 @@ font-weight: var(--ifm-font-weight-bold); } - @keyframes loader { 0% { transform: rotate(0deg); diff --git a/src/utils/Toast.js b/src/utils/Toast.js deleted file mode 100644 index e69de29b..00000000