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

master
钟良源 3 months ago
parent 03976ab0cc
commit 4c4df84c91

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

@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { updateSocketId, updateNodeStatus, updateIsRunning, resetNodeStatus } from '@/store/ideContainer';
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 SideBar from './sideBar';

Loading…
Cancel
Save