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)