chore: upgrade deps

style(prettier): format code style
This commit is contained in:
unix
2020-05-06 14:46:06 +08:00
parent b1950970b1
commit 3a8dd34010
40 changed files with 77 additions and 76 deletions

View File

@@ -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(() => {

View File

@@ -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()