mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
refactor flow menu
This commit is contained in:
parent
779e5e84e3
commit
dbec2e0940
@ -8,10 +8,14 @@ FlowMenu.title = 'Flow'
|
|||||||
|
|
||||||
FlowMenu.propTypes = {
|
FlowMenu.propTypes = {
|
||||||
flow: PropTypes.object.isRequired,
|
flow: PropTypes.object.isRequired,
|
||||||
|
acceptFlow: PropTypes.func.isRequired,
|
||||||
|
replayFlow: PropTypes.func.isRequired,
|
||||||
|
duplicateFlow: PropTypes.func.isRequired,
|
||||||
|
removeFlow: PropTypes.func.isRequired,
|
||||||
|
revertFlow: PropTypes.func.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
function FlowMenu({ flow, acceptFlow, replayFlow, duplicateFlow, removeFlow, revertFlow }) {
|
function FlowMenu({ flow, acceptFlow, replayFlow, duplicateFlow, removeFlow, revertFlow }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="menu-row">
|
<div className="menu-row">
|
||||||
|
Loading…
Reference in New Issue
Block a user