This commit is contained in:
Nathan Bierema 2025-06-01 07:37:14 -04:00
parent 2166ef27db
commit 4754cc1ae9
2 changed files with 3 additions and 11 deletions

View File

@ -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 = {

View File

@ -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;