File tree 6 files changed +127
-118
lines changed
6 files changed +127
-118
lines changed Original file line number Diff line number Diff line change 57
57
"@types/react" : " ^16.14.0" ,
58
58
"@types/react-datepicker" : " ^3.1.8" ,
59
59
"@types/react-dom" : " ^16.9.14" ,
60
+ "@types/react-syntax-highlighter" : " ^15.4.3" ,
60
61
"@types/rebass" : " ^4.0.10" ,
61
62
"@types/rebass__forms" : " ^4.0.6" ,
62
63
"@typescript-eslint/eslint-plugin" : " ^5.29.0" ,
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
1
2
import { SxStyleProp } from 'rebass' ;
2
3
3
- export const boxStyles = {
4
+ export const boxStyles : React . CSSProperties = {
4
5
width : '100%' ,
5
6
lineHeight : '16px' ,
6
7
whiteSpace : 'pre-wrap' ,
7
8
wordBreak : 'break-all' ,
8
9
backgroundColor : 'grayShade3' ,
9
- fonts : 'value' ,
10
10
fontWeight : 'text' ,
11
11
marginTop : 0 ,
12
12
marginBottom : 0 ,
@@ -21,7 +21,7 @@ export const codeHeaderStyles = {
21
21
fontSize : 'value' ,
22
22
} ;
23
23
24
- export const lineNumberStyles = {
24
+ export const lineNumberStyles : React . CSSProperties = {
25
25
paddingLeft : '5px' ,
26
26
paddingRight : '5px' ,
27
27
marginRight : '10px' ,
Original file line number Diff line number Diff line change 1
1
import React , { FC , useState } from 'react' ;
2
2
import { Box , FlexProps , Flex } from 'rebass' ;
3
3
import SyntaxHighlighter from 'react-syntax-highlighter' ;
4
+ import { hybrid } from 'react-syntax-highlighter/dist/esm/styles/hljs' ;
4
5
import Button from '../button' ;
5
6
import ExpandViewer from '../expand-viewer' ;
6
7
@@ -14,7 +15,6 @@ import Value from '../typography/value';
14
15
import { copyToClipboard , saveToFile } from '../../utils' ;
15
16
import { PopupProps } from '../popup' ;
16
17
import { GetIcon , IconName } from '../icon' ;
17
- import { hybrid } from 'react-syntax-highlighter/dist/esm/styles/hljs' ;
18
18
19
19
const CONTENT_UPPER_BOUND = 12 ;
20
20
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ const FileSystemExplorer: FC<FileSystemExplorerProps> = ({
144
144
fileListValue = { fileListValue }
145
145
value = { pathListValue }
146
146
activeFile = { activeFile }
147
- columns = { columns }
148
147
mode = { mode }
149
148
handleSelectFile = { handleSelectFile }
150
149
rootDir = { rootDir }
You can’t perform that action at this time.
0 commit comments