-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00e8d7b
commit e9a06b1
Showing
4 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters