mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
refactor(v2): make proper import of react-router-dom (#2187)
This commit is contained in:
parent
ac2452d307
commit
d8b170ee51
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import {useState, useCallback, useEffect} from 'react';
|
||||
import {useLocation} from 'react-router-dom';
|
||||
import {useLocation} from '@docusaurus/router';
|
||||
|
||||
const useHideableNavbar = hideOnScroll => {
|
||||
const [isNavbarVisible, setIsNavbarVisible] = useState(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue