fix: Wrong reference in warning message
This commit is contained in:
parent
2298f9f0c5
commit
6babb3230b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue