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:
22
frontend/src/components/common/common-undo-tool.js
Normal file
22
frontend/src/components/common/common-undo-tool.js
Normal 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;
|
Reference in New Issue
Block a user