mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
refactor: capitalize comments (#7188)
* refactor: capitalize comments * revert...
This commit is contained in:
parent
200009008b
commit
fa1ce230ea
99 changed files with 241 additions and 350 deletions
|
@ -72,7 +72,7 @@ function useContextValue(): ContextValue {
|
|||
|
||||
let viewedId = IdStorage.get();
|
||||
|
||||
// retrocompatibility due to spelling mistake of default id
|
||||
// Retrocompatibility due to spelling mistake of default id
|
||||
// see https://github.com/facebook/docusaurus/issues/3338
|
||||
// cSpell:ignore annoucement
|
||||
if (viewedId === 'annoucement-bar') {
|
||||
|
|
|
@ -58,9 +58,9 @@ function useContextValue(): ContextValue {
|
|||
useHistoryPopHandler(() => {
|
||||
if (shown) {
|
||||
setShown(false);
|
||||
// Should we prevent the navigation here?
|
||||
// Prevent pop navigation; seems desirable enough
|
||||
// See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846
|
||||
return false; // prevent pop navigation
|
||||
return false;
|
||||
}
|
||||
return undefined;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue