diff --git a/packages/components/src/components/CodeViewer/viewer.tsx b/packages/components/src/components/CodeViewer/viewer.tsx index 58907391..50005aa2 100644 --- a/packages/components/src/components/CodeViewer/viewer.tsx +++ b/packages/components/src/components/CodeViewer/viewer.tsx @@ -1,9 +1,7 @@ -/* eslint-disable financial/no-float-calculation */ import React from 'react'; import { SDK } from '@rsdoctor/types'; import Editor, { OnMount } from '@monaco-editor/react'; import { isNumber } from 'lodash-es'; -// import { CodeOutlined } from '@ant-design/icons'; import type { editor } from 'monaco-editor'; import { getOriginalLanguage, getSelectionRange } from '../../utils'; import { DefaultEditorConfig } from './config'; diff --git a/packages/components/src/pages/BundleSize/components/asset.tsx b/packages/components/src/pages/BundleSize/components/asset.tsx index f3296c0f..c6e5c52c 100644 --- a/packages/components/src/pages/BundleSize/components/asset.tsx +++ b/packages/components/src/pages/BundleSize/components/asset.tsx @@ -354,7 +354,6 @@ export const AssetDetail: React.FC<{ height, root, }) => { - // const navigate = useNavigate(); const [moduleKeyword, setModuleKeyword] = useState(''); const [defaultExpandAll, setDefaultExpandAll] = useState(false); const [moduleJumpList, setModuleJumpList] = useState([] as number[]); @@ -468,7 +467,6 @@ export const AssetDetail: React.FC<{ } const p = relative(dirname(mod.path), path); - if (p.startsWith('javascript;charset=utf-8;base64,')) { return ( includeModules.find((m) => m.path === e)!, // );