chore(code): 移除未使用的撤销重做按钮组

production
钟良源 6 months ago
parent 03976ab0cc
commit 4c4df84c91

@ -64,29 +64,29 @@ const ActionBar: React.FC<ActionBarProps> = ({
</Button> </Button>
</ButtonGroup> </ButtonGroup>
<ButtonGroup style={{ marginLeft: 15 }}> {/*<ButtonGroup style={{ marginLeft: 15 }}>*/}
<Button {/* <Button*/}
type="outline" {/* type="outline"*/}
shape="round" {/* shape="round"*/}
icon={<IconUndo />} {/* icon={<IconUndo />}*/}
onClick={onUndo} {/* onClick={onUndo}*/}
disabled={!canUndo} {/* disabled={!canUndo}*/}
status="danger" {/* status="danger"*/}
style={{ padding: '0 8px', backgroundColor: '#fff' }} {/* style={{ padding: '0 8px', backgroundColor: '#fff' }}*/}
> {/* >*/}
{/* 撤销*/}
</Button> {/* </Button>*/}
<Button {/* <Button*/}
type="outline" {/* type="outline"*/}
shape="round" {/* shape="round"*/}
icon={<IconRedo />} {/* icon={<IconRedo />}*/}
onClick={onRedo} {/* onClick={onRedo}*/}
disabled={!canRedo} {/* disabled={!canRedo}*/}
style={{ padding: '0 8px', backgroundColor: '#fff' }} {/* style={{ padding: '0 8px', backgroundColor: '#fff' }}*/}
> {/* >*/}
{/* 重做*/}
</Button> {/* </Button>*/}
</ButtonGroup> {/*</ButtonGroup>*/}
</> </>
)} )}
</div> </div>

@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
import { useSelector, useDispatch } from 'react-redux'; import { useSelector, useDispatch } from 'react-redux';
import { updateSocketId, updateNodeStatus, updateIsRunning, resetNodeStatus } from '@/store/ideContainer'; import { updateSocketId, updateNodeStatus, updateIsRunning, resetNodeStatus } from '@/store/ideContainer';
import useWebSocket from '@/hooks/useWebSocket'; import useWebSocket from '@/hooks/useWebSocket';
import { isJSON ,getUrlParams} from '@/utils/common'; import { isJSON, getUrlParams } from '@/utils/common';
import styles from './style/index.module.less'; import styles from './style/index.module.less';
import SideBar from './sideBar'; import SideBar from './sideBar';

Loading…
Cancel
Save