mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 06:29: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;
|
||||
}
|
||||
|
||||
const ActionPreviewHeader: FunctionComponent<Props<unknown, Action<unknown>>> =
|
||||
({ styling, inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
||||
const ActionPreviewHeader: FunctionComponent<
|
||||
Props<unknown, Action<unknown>>
|
||||
> = ({ styling, inspectedPath, onInspectPath, tabName, onSelectTab, tabs }) => (
|
||||
<div key="previewHeader" {...styling('previewHeader')}>
|
||||
<div {...styling('tabSelector')}>
|
||||
{tabs.map((tab) => (
|
||||
|
@ -62,7 +63,7 @@ const ActionPreviewHeader: FunctionComponent<Props<unknown, Action<unknown>>> =
|
|||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
|
||||
ActionPreviewHeader.propTypes = {
|
||||
tabs: PropTypes.array.isRequired,
|
||||
|
|
|
@ -4,8 +4,9 @@ import JSONDiff from './JSONDiff';
|
|||
import { TabComponentProps } from '../ActionPreview';
|
||||
import { Action } from 'redux';
|
||||
|
||||
const DiffTab: FunctionComponent<TabComponentProps<unknown, Action<unknown>>> =
|
||||
({
|
||||
const DiffTab: FunctionComponent<
|
||||
TabComponentProps<unknown, Action<unknown>>
|
||||
> = ({
|
||||
delta,
|
||||
styling,
|
||||
base16Theme,
|
||||
|
@ -13,7 +14,7 @@ const DiffTab: FunctionComponent<TabComponentProps<unknown, Action<unknown>>> =
|
|||
labelRenderer,
|
||||
isWideLayout,
|
||||
dataTypeKey,
|
||||
}) => (
|
||||
}) => (
|
||||
<JSONDiff
|
||||
{...{
|
||||
delta,
|
||||
|
@ -25,7 +26,7 @@ const DiffTab: FunctionComponent<TabComponentProps<unknown, Action<unknown>>> =
|
|||
dataTypeKey,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
);
|
||||
|
||||
DiffTab.propTypes = {
|
||||
delta: PropTypes.any,
|
||||
|
|
|
@ -200,8 +200,10 @@ export function createInspectorSelectors<S>(): InspectorSelectors<S> {
|
|||
}
|
||||
);
|
||||
|
||||
const selectApiOfCurrentQuery: InspectorSelector<S, null | RtkQueryApiState> =
|
||||
(selectorsSource: SelectorsSource<S>) => {
|
||||
const selectApiOfCurrentQuery: InspectorSelector<
|
||||
S,
|
||||
null | RtkQueryApiState
|
||||
> = (selectorsSource: SelectorsSource<S>) => {
|
||||
const apiStates = selectApiStates(selectorsSource);
|
||||
const currentQueryInfo = selectCurrentQueryInfo(selectorsSource);
|
||||
|
||||
|
|
|
@ -11,8 +11,9 @@ interface ContainerFromThemeDataProps {
|
|||
className?: string;
|
||||
}
|
||||
|
||||
const ContainerFromThemeData: React.FunctionComponent<ContainerFromThemeDataProps> =
|
||||
({ themeData, className, children }) => {
|
||||
const ContainerFromThemeData: React.FunctionComponent<
|
||||
ContainerFromThemeDataProps
|
||||
> = ({ themeData, className, children }) => {
|
||||
const theme = useTheme(themeData);
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
|
@ -21,7 +22,7 @@ const ContainerFromThemeData: React.FunctionComponent<ContainerFromThemeDataProp
|
|||
</MainContainerWrapper>
|
||||
</ThemeProvider>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
interface Props {
|
||||
children?: React.ReactNode;
|
||||
|
|
|
@ -53,4 +53,4 @@ WithTabs.argTypes = {
|
|||
foldGutter: { control: { disable: true } },
|
||||
autofocus: { control: { disable: true } },
|
||||
onChange: { control: { disable: true } },
|
||||
};
|
||||
} as any;
|
||||
|
|
|
@ -17,7 +17,7 @@ export default {
|
|||
component: SegmentedControl,
|
||||
};
|
||||
|
||||
const Template: Story<Omit<SegmentedControlProps, 'values'>> = (args) => (
|
||||
const Template: Story<SegmentedControlProps> = ({ values, ...args }) => (
|
||||
<Container>
|
||||
<SegmentedControl values={['Button1', 'Button2', 'Button3']} {...args} />
|
||||
</Container>
|
||||
|
|
13
yarn.lock
13
yarn.lock
|
@ -7723,18 +7723,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react@npm:*, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11":
|
||||
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":
|
||||
"@types/react@npm:*, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11, @types/react@npm:^17.0.37":
|
||||
version: 17.0.37
|
||||
resolution: "@types/react@npm:17.0.37"
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in New Issue
Block a user