-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core/help): Migrate HelpContext to react hooks style (#7487)
Export the entire context object instead of Provider and Consumer objects. Also migrate HelpField to hooks style.
- Loading branch information
1 parent
3c08b38
commit 5c3fcc7
Showing
5 changed files
with
45 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
app/scripts/modules/core/src/help/HelpTextExpandedContext.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as React from 'react'; | ||
|
||
export const HelpTextExpandedContext = React.createContext(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from './helpContents.registry'; | ||
export * from './help.contents'; | ||
export * from './HelpField'; | ||
export * from './HelpMenu'; | ||
export * from './HelpContext'; | ||
export * from './HelpTextExpandedContext'; | ||
export * from './help.contents'; | ||
export * from './helpContents.registry'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters