-
-
Notifications
You must be signed in to change notification settings - Fork 10k
refactor: import jest as global; unify import style of some modules #6898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,9 +10,8 @@ import React, { | |
| useEffect, | ||
| useCallback, | ||
| useMemo, | ||
| type ReactNode, | ||
| useContext, | ||
| createContext, | ||
| type ReactNode, | ||
| } from 'react'; | ||
| import useIsBrowser from '@docusaurus/useIsBrowser'; | ||
| import {createStorageSlot} from './storageUtils'; | ||
|
|
@@ -96,7 +95,9 @@ const useAnnouncementBarContextValue = (): AnnouncementBarAPI => { | |
| ); | ||
| }; | ||
|
|
||
| const AnnouncementBarContext = createContext<AnnouncementBarAPI | null>(null); | ||
| const AnnouncementBarContext = React.createContext<AnnouncementBarAPI | null>( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not against this change, just wondering why it's necessary?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, purely stylistic. We have some |
||
| null, | ||
| ); | ||
|
|
||
| export function AnnouncementBarProvider({ | ||
| children, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should be disabled with more granularity (if possible)? 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test files are internal anyways. If they can run, there's nothing to worry about.