mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
remove is required check
This commit is contained in:
parent
c980eadec7
commit
54f334e437
|
@ -38,10 +38,10 @@ const defaultItemString = (
|
||||||
itemType: React.ReactNode,
|
itemType: React.ReactNode,
|
||||||
itemString: string
|
itemString: string
|
||||||
) => (
|
) => (
|
||||||
<span>
|
<span>
|
||||||
{itemType} {itemString}
|
{itemType} {itemString}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
const defaultLabelRenderer = ([label]: (string | number)[]) => (
|
const defaultLabelRenderer = ([label]: (string | number)[]) => (
|
||||||
<span>{label}:</span>
|
<span>{label}:</span>
|
||||||
);
|
);
|
||||||
|
@ -77,7 +77,7 @@ function checkLegacyTheming(theme: Theme | undefined, props: Props) {
|
||||||
|
|
||||||
(theme as StylingConfig)[
|
(theme as StylingConfig)[
|
||||||
deprecatedStylingMethodsMap[
|
deprecatedStylingMethodsMap[
|
||||||
name as keyof typeof deprecatedStylingMethodsMap
|
name as keyof typeof deprecatedStylingMethodsMap
|
||||||
]
|
]
|
||||||
] = ({ style }, ...args) => ({
|
] = ({ style }, ...args) => ({
|
||||||
style: {
|
style: {
|
||||||
|
@ -104,7 +104,7 @@ function getStateFromProps(props: Props) {
|
||||||
|
|
||||||
export default class JSONTree extends React.Component<Props, State> {
|
export default class JSONTree extends React.Component<Props, State> {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
data: PropTypes.any.isRequired,
|
data: PropTypes.any,
|
||||||
hideRoot: PropTypes.bool,
|
hideRoot: PropTypes.bool,
|
||||||
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
||||||
invertTheme: PropTypes.bool,
|
invertTheme: PropTypes.bool,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user