mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-17 11:42:29 +03:00
Updates
This commit is contained in:
parent
2166ef27db
commit
4754cc1ae9
|
@ -1,7 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import CodeMirror, { EditorChange } from 'codemirror';
|
||||
import type { Base16Theme } from 'react-base16-styling';
|
||||
import { defaultStyle, themedStyle } from './styles';
|
||||
import { Theme } from '../themes/default';
|
||||
|
||||
|
@ -28,7 +27,6 @@ export interface EditorProps {
|
|||
lineNumbers: boolean;
|
||||
lineWrapping: boolean;
|
||||
readOnly: boolean;
|
||||
theme?: Base16Theme;
|
||||
foldGutter: boolean;
|
||||
autofocus: boolean;
|
||||
onChange?: (value: string, change: EditorChange) => void;
|
||||
|
@ -93,7 +91,7 @@ export default class Editor extends Component<EditorProps> {
|
|||
};
|
||||
|
||||
render() {
|
||||
return <EditorContainer ref={this.getRef} theme={this.props.theme} />;
|
||||
return <EditorContainer ref={this.getRef} />;
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
import styled, { ThemedStyledInterface } from 'styled-components';
|
||||
import type { Base16Theme } from 'react-base16-styling';
|
||||
import * as CSS from 'csstype';
|
||||
import styled from 'styled-components';
|
||||
|
||||
export type BorderPosition = 'top' | 'bottom';
|
||||
|
||||
|
@ -11,11 +9,7 @@ export interface Props {
|
|||
noBorder?: boolean;
|
||||
}
|
||||
|
||||
const Toolbar = (
|
||||
styled as ThemedStyledInterface<
|
||||
Base16Theme & { fontFamily?: CSS.Property.FontFamily }
|
||||
>
|
||||
).div<Props>`
|
||||
const Toolbar = styled.div<Props>`
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
|
|
Loading…
Reference in New Issue
Block a user