import React, { PropTypes } from 'react' import classnames from 'classnames' import columns from './FlowColumns' import { pure } from '../../utils' FlowRow.propTypes = { onSelect: PropTypes.func.isRequired, flow: PropTypes.object.isRequired, highlighted: PropTypes.bool, selected: PropTypes.bool, } function FlowRow({ flow, selected, highlighted, onSelect }) { const className = classnames({ 'selected': selected, 'highlighted': highlighted, 'intercepted': flow.intercepted, 'has-request': flow.request, 'has-response': flow.response, }) return ( onSelect(flow.id)}> {columns.map(Column => ( ))} ) } export default pure(FlowRow) i/cloud-email/mitmproxy/'>cloud-email/mitmproxy
clone of mitm proxyJames
aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/FlowTable/FlowRow.jsx
blob: 7961d502633a7e23272e65380cdca478359eac2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31