Skip to content

Commit 41a4ba3

Browse files
authored
fix(build): fix build issues (#282)
* Add synctax hightliter typings * Minor issues blocking build
1 parent 48a3f80 commit 41a4ba3

File tree

6 files changed

+127
-118
lines changed

6 files changed

+127
-118
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@types/react": "^16.14.0",
5858
"@types/react-datepicker": "^3.1.8",
5959
"@types/react-dom": "^16.9.14",
60+
"@types/react-syntax-highlighter": "^15.4.3",
6061
"@types/rebass": "^4.0.10",
6162
"@types/rebass__forms": "^4.0.6",
6263
"@typescript-eslint/eslint-plugin": "^5.29.0",

src/components/code/code.styles.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import React from 'react';
12
import { SxStyleProp } from 'rebass';
23

3-
export const boxStyles = {
4+
export const boxStyles: React.CSSProperties = {
45
width: '100%',
56
lineHeight: '16px',
67
whiteSpace: 'pre-wrap',
78
wordBreak: 'break-all',
89
backgroundColor: 'grayShade3',
9-
fonts: 'value',
1010
fontWeight: 'text',
1111
marginTop: 0,
1212
marginBottom: 0,
@@ -21,7 +21,7 @@ export const codeHeaderStyles = {
2121
fontSize: 'value',
2222
};
2323

24-
export const lineNumberStyles = {
24+
export const lineNumberStyles: React.CSSProperties = {
2525
paddingLeft: '5px',
2626
paddingRight: '5px',
2727
marginRight: '10px',

src/components/code/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { FC, useState } from 'react';
22
import { Box, FlexProps, Flex } from 'rebass';
33
import SyntaxHighlighter from 'react-syntax-highlighter';
4+
import { hybrid } from 'react-syntax-highlighter/dist/esm/styles/hljs';
45
import Button from '../button';
56
import ExpandViewer from '../expand-viewer';
67

@@ -14,7 +15,6 @@ import Value from '../typography/value';
1415
import { copyToClipboard, saveToFile } from '../../utils';
1516
import { PopupProps } from '../popup';
1617
import { GetIcon, IconName } from '../icon';
17-
import { hybrid } from 'react-syntax-highlighter/dist/esm/styles/hljs';
1818

1919
const CONTENT_UPPER_BOUND = 12;
2020

src/components/file-system-explorer/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ const FileSystemExplorer: FC<FileSystemExplorerProps> = ({
144144
fileListValue={fileListValue}
145145
value={pathListValue}
146146
activeFile={activeFile}
147-
columns={columns}
148147
mode={mode}
149148
handleSelectFile={handleSelectFile}
150149
rootDir={rootDir}

0 commit comments

Comments
 (0)