1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

Change delete wiki page UI (#7171)

* change delete wiki page UI

* optimise codes

* fix text
This commit is contained in:
Michael An
2024-12-11 10:09:16 +08:00
committed by GitHub
parent d9c9779327
commit fc05e4827d
7 changed files with 53 additions and 25 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
function CommonUndoTool(props) {
const style = {
color: 'rgb(71, 184, 129)',
marginLeft: '8px',
paddingBottom: '1px',
borderBottom: '1px solid rgb(71, 184, 129)',
cursor: 'pointer',
};
return (
<span onClick={(e) => {e.stopPropagation(); props.onUndoOperation(e);}} style={style}>{gettext('Undo')}</span>
);
}
CommonUndoTool.propTypes = {
onUndoOperation: PropTypes.func.isRequired,
};
export default CommonUndoTool;