🌈 style(eslint): 解决eslint的错误❌
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user