-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PPDSC-2005): rename NewskitProvider to NewsKitProvider
- Loading branch information
Stoyan Delev
committed
Jul 25, 2022
1 parent
a21ac89
commit d12515a
Showing
19 changed files
with
68 additions
and
67 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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,9 +1,9 @@ | ||
import { NewskitProvider, newskitLightTheme } from 'newskit'; | ||
import { NewsKitProvider, newskitLightTheme } from 'newskit'; | ||
|
||
render() { | ||
return ( | ||
<NewskitProvider theme={newskitLightTheme}> | ||
<NewsKitProvider theme={newskitLightTheme}> | ||
<MyApp /> | ||
</NewskitProvider> | ||
</NewsKitProvider> | ||
) | ||
} |
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,15 +1,15 @@ | ||
import { NewskitProvider, newskitLightTheme, styled } from 'newskit'; | ||
import { NewsKitProvider, newskitLightTheme, styled } from 'newskit'; | ||
|
||
const MyAppContainer = styled.div` | ||
max-width: ${({ theme }) => theme.sizing.sizing110}; | ||
`; | ||
|
||
render() { | ||
return ( | ||
<NewskitProvider theme={newskitLightTheme}> | ||
<NewsKitProvider theme={newskitLightTheme}> | ||
<MyAppContainer> | ||
<MyApp /> | ||
</MyAppContainer> | ||
</NewskitProvider> | ||
</NewsKitProvider> | ||
) | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/newskit-provider/__tests__/__snapshots__/newskitprovider.test.tsx.snap
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
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
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,7 +1,7 @@ | ||
import React from 'react'; | ||
|
||
// This provider is internal and is used only to detect when NewskitProvider is used inside NewskitProvider | ||
// On the very first Provider we set value of {initialized: true} based on that we know if NewskitProvider is already used | ||
export const NewskitInternalContext = React.createContext({}); | ||
// This provider is internal and is used only to detect when NewsKitProvider is used inside NewsKitProvider | ||
// On the very first Provider we set value of {initialized: true} based on that we know if NewsKitProvider is already used | ||
export const NewsKitInternalContext = React.createContext({}); | ||
|
||
export const useNewskitContext = () => React.useContext(NewskitInternalContext); | ||
export const useNewsKitContext = () => React.useContext(NewsKitInternalContext); |
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,2 +1,2 @@ | ||
export {NewskitProvider} from './newskit-provider'; | ||
export type {NewskitProviderProps} from './newskit-provider'; | ||
export {NewsKitProvider} from './newskit-provider'; | ||
export type {NewsKitProviderProps} from './newskit-provider'; |
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
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
Oops, something went wrong.