🌈 style(eslint): 解决eslint的错误❌

This commit is contained in:
xuan
2022-12-01 18:10:18 +08:00
parent bd06efef61
commit 9e7b4d7d56
22 changed files with 222 additions and 223 deletions
+4 -1
View File
@@ -69,7 +69,10 @@ const stateObj: BluetoothStateType = {
// 取色仪主动返回的数据
deviceLab: null,
}
const ContextBlueTooth = (props) => {
interface PropsType {
children?: React.ReactNode
}
const ContextBlueTooth = (props: PropsType) => {
const refStatus = useRef(stateObj)
const [state, setState] = useState(refStatus.current)