-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rtk-query-monitor] Replace jss with Emotion (#1568)
* Add Emotion to RTK Query monitor * Add other Emotion setup * Start transition * Convert more styling to Emotion * Convert more styling to Emotion * Finish convert styling to Emotion * import type * Fix test * Remove unused styling * Remove more unused styling * Remove more unused styling * Remove jss * Cleanup * Create perfect-otters-help.md * Update perfect-otters-help.md
- Loading branch information
1 parent
178002d
commit 6954eb9
Showing
24 changed files
with
730 additions
and
1,025 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@redux-devtools/rtk-query-monitor': major | ||
--- | ||
|
||
Replace jss with Emotion in inspector-monitor. `@emotion/react` is now a required peer dependency. |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"compilerOptions": { | ||
"resolveJsonModule": true | ||
}, | ||
"include": ["../src", "src"] | ||
"include": ["src"] | ||
} |
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
43 changes: 25 additions & 18 deletions
43
packages/redux-devtools-rtk-query-monitor/src/components/NoRtkQueryApi.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 |
---|---|---|
@@ -1,24 +1,31 @@ | ||
import React from 'react'; | ||
import { StyleUtilsContext } from '../styles/createStylingFromTheme'; | ||
|
||
export function NoRtkQueryApi(): JSX.Element { | ||
return ( | ||
<StyleUtilsContext.Consumer> | ||
{({ styling }) => ( | ||
<div {...styling('noApiFound')}> | ||
No rtk-query api found. | ||
<br /> | ||
Make sure to follow{' '} | ||
<a | ||
href="https://redux-toolkit.js.org/rtk-query/overview#basic-usage" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
> | ||
the instructions | ||
</a> | ||
. | ||
</div> | ||
)} | ||
</StyleUtilsContext.Consumer> | ||
<div | ||
css={(theme) => ({ | ||
width: '100%', | ||
textAlign: 'center', | ||
color: theme.TEXT_COLOR, | ||
padding: '1.4em', | ||
'& a': { | ||
fontSize: 'inherit', | ||
color: theme.TEXT_COLOR, | ||
textDecoration: 'underline', | ||
}, | ||
})} | ||
> | ||
No rtk-query api found. | ||
<br /> | ||
Make sure to follow{' '} | ||
<a | ||
href="https://redux-toolkit.js.org/rtk-query/overview#basic-usage" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
> | ||
the instructions | ||
</a> | ||
. | ||
</div> | ||
); | ||
} |
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.