mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-24 23:19:51 +03:00
Changes
This commit is contained in:
parent
d913fc1104
commit
31136b98be
|
@ -13,8 +13,9 @@ interface Props<S, A extends Action<unknown>> {
|
||||||
onSelectTab: (tabName: string) => void;
|
onSelectTab: (tabName: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ActionPreviewHeader: FunctionComponent<Props<unknown, Action<unknown>>> =
|
const ActionPreviewHeader: FunctionComponent<
|
||||||
({ styling, inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
Props<unknown, Action<unknown>>
|
||||||
|
> = ({ styling, inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
||||||
<div key="previewHeader" {...styling('previewHeader')}>
|
<div key="previewHeader" {...styling('previewHeader')}>
|
||||||
<div {...styling('tabSelector')}>
|
<div {...styling('tabSelector')}>
|
||||||
{tabs.map((tab) => (
|
{tabs.map((tab) => (
|
||||||
|
|
|
@ -4,8 +4,9 @@ import JSONDiff from './JSONDiff';
|
||||||
import { TabComponentProps } from '../ActionPreview';
|
import { TabComponentProps } from '../ActionPreview';
|
||||||
import { Action } from 'redux';
|
import { Action } from 'redux';
|
||||||
|
|
||||||
const DiffTab: FunctionComponent<TabComponentProps<unknown, Action<unknown>>> =
|
const DiffTab: FunctionComponent<
|
||||||
({
|
TabComponentProps<unknown, Action<unknown>>
|
||||||
|
> = ({
|
||||||
delta,
|
delta,
|
||||||
styling,
|
styling,
|
||||||
base16Theme,
|
base16Theme,
|
||||||
|
|
|
@ -200,8 +200,10 @@ export function createInspectorSelectors<S>(): InspectorSelectors<S> {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const selectApiOfCurrentQuery: InspectorSelector<S, null | RtkQueryApiState> =
|
const selectApiOfCurrentQuery: InspectorSelector<
|
||||||
(selectorsSource: SelectorsSource<S>) => {
|
S,
|
||||||
|
null | RtkQueryApiState
|
||||||
|
> = (selectorsSource: SelectorsSource<S>) => {
|
||||||
const apiStates = selectApiStates(selectorsSource);
|
const apiStates = selectApiStates(selectorsSource);
|
||||||
const currentQueryInfo = selectCurrentQueryInfo(selectorsSource);
|
const currentQueryInfo = selectCurrentQueryInfo(selectorsSource);
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,9 @@ interface ContainerFromThemeDataProps {
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ContainerFromThemeData: React.FunctionComponent<ContainerFromThemeDataProps> =
|
const ContainerFromThemeData: React.FunctionComponent<
|
||||||
({ themeData, className, children }) => {
|
ContainerFromThemeDataProps
|
||||||
|
> = ({ themeData, className, children }) => {
|
||||||
const theme = useTheme(themeData);
|
const theme = useTheme(themeData);
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
|
|
|
@ -53,4 +53,4 @@ WithTabs.argTypes = {
|
||||||
foldGutter: { control: { disable: true } },
|
foldGutter: { control: { disable: true } },
|
||||||
autofocus: { control: { disable: true } },
|
autofocus: { control: { disable: true } },
|
||||||
onChange: { control: { disable: true } },
|
onChange: { control: { disable: true } },
|
||||||
};
|
} as any;
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
||||||
component: SegmentedControl,
|
component: SegmentedControl,
|
||||||
};
|
};
|
||||||
|
|
||||||
const Template: Story<Omit<SegmentedControlProps, 'values'>> = (args) => (
|
const Template: Story<SegmentedControlProps> = ({ values, ...args }) => (
|
||||||
<Container>
|
<Container>
|
||||||
<SegmentedControl values={['Button1', 'Button2', 'Button3']} {...args} />
|
<SegmentedControl values={['Button1', 'Button2', 'Button3']} {...args} />
|
||||||
</Container>
|
</Container>
|
||||||
|
|
13
yarn.lock
13
yarn.lock
|
@ -7723,18 +7723,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@types/react@npm:*, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11":
|
"@types/react@npm:*, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11, @types/react@npm:^17.0.37":
|
||||||
version: 17.0.36
|
|
||||||
resolution: "@types/react@npm:17.0.36"
|
|
||||||
dependencies:
|
|
||||||
"@types/prop-types": "*"
|
|
||||||
"@types/scheduler": "*"
|
|
||||||
csstype: ^3.0.2
|
|
||||||
checksum: feeaa484d5d7e354ba6830b06342dec6fd1a2ac87f73d21d3d4f2a3d311459de4090330a1e8af7275c8d1e7737b655a7550c8dd3dbc74ccf34ffd3fc824bbd12
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"@types/react@npm:^17.0.37":
|
|
||||||
version: 17.0.37
|
version: 17.0.37
|
||||||
resolution: "@types/react@npm:17.0.37"
|
resolution: "@types/react@npm:17.0.37"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user