From 3e5ad994cde753e273931592fd1fddf16c2a7a25 Mon Sep 17 00:00:00 2001 From: amass <168062547@qq.com> Date: Mon, 26 Jun 2023 18:55:43 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=A7=BB=E9=99=A4eslint=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DynamicCodeForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DynamicCodeForm.js b/src/components/DynamicCodeForm.js index 03aa3a6..84a6150 100644 --- a/src/components/DynamicCodeForm.js +++ b/src/components/DynamicCodeForm.js @@ -2,12 +2,12 @@ import { Container, TextField, InputAdornment, Link, Button } from "@mui/materia import React, { useState, useEffect, useRef } from 'react'; import PhoneIphoneIcon from '@mui/icons-material/PhoneIphone'; import LockIcon from '@mui/icons-material/Lock'; -import { useSelector, useDispatch } from 'react-redux' +import { useSelector } from 'react-redux' import yzs from "../business/request.js"; import Agreement from "./Agreement.js"; import { validatePhoneNumber, textHintOfValidatePhoneNumber } from "../business/utilities.js" -export default function ({ udid, firstEnter, onChange, agreeAgreement, onAgreeChange }) { +export default function DynamicCodeForm({ udid, firstEnter, onChange, agreeAgreement, onAgreeChange }) { const code = useRef(null); const [seconds, setSeconds] = useState(0); // 倒计时 const account = useSelector(state => state.user.account)