1
0
Fork 0

fix: Wrong reference in warning message

This commit is contained in:
Joost De Cock 2021-07-01 14:24:53 +02:00
parent 2298f9f0c5
commit 6babb3230b

View file

@ -38,7 +38,7 @@ const Example = ({
const [designMode, setDesignMode] = useState(false) const [designMode, setDesignMode] = useState(false)
const [focus, setFocus] = useState(null) const [focus, setFocus] = useState(null)
if (caption) console.log('Passing the caption prop to @freesewing/components/Legend is deprecated. See: https://github.com/freesewing/freesewing/issues/1043') if (caption) console.log('Passing the caption prop to @freesewing/components/Example is deprecated. See: https://github.com/freesewing/freesewing/issues/1043')
const raiseEvent = (type, data) => { const raiseEvent = (type, data) => {
if (type === 'clearFocusAll') return setFocus(null) if (type === 'clearFocusAll') return setFocus(null)