mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
chore: upgrade deps
style(prettier): format code style
This commit is contained in:
@@ -5,7 +5,7 @@ import { Input, useInput } from 'components'
|
||||
describe('UseInput', () => {
|
||||
it('should follow change with use-input', () => {
|
||||
let log = ''
|
||||
const logSpy = jest.spyOn(console, 'log').mockImplementation((msg) => (log = msg))
|
||||
const logSpy = jest.spyOn(console, 'log').mockImplementation(msg => (log = msg))
|
||||
const MockInput: React.FC<{ value?: string }> = ({ value }) => {
|
||||
const { state, setState, bindings } = useInput('')
|
||||
useEffect(() => {
|
||||
|
||||
@@ -25,7 +25,7 @@ const InputPassword = React.forwardRef<
|
||||
useImperativeHandle(ref, () => inputRef.current)
|
||||
|
||||
const iconClickHandler = () => {
|
||||
setVisible((v) => !v)
|
||||
setVisible(v => !v)
|
||||
/* istanbul ignore next */
|
||||
if (inputRef && inputRef.current) {
|
||||
inputRef.current.focus()
|
||||
|
||||
Reference in New Issue
Block a user