mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
[web] Export PureViewServer in ContentView/ContentView.jsx
This commit is contained in:
parent
602ab1a687
commit
d1a40def20
@ -30,7 +30,7 @@ function Edit({ content, onChange }) {
|
|||||||
}
|
}
|
||||||
Edit = ContentLoader(Edit)
|
Edit = ContentLoader(Edit)
|
||||||
|
|
||||||
class ViewServer extends Component {
|
export class PureViewServer extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
showFullContent: PropTypes.bool.isRequired,
|
showFullContent: PropTypes.bool.isRequired,
|
||||||
maxLines: PropTypes.number.isRequired,
|
maxLines: PropTypes.number.isRequired,
|
||||||
@ -85,7 +85,7 @@ class ViewServer extends Component {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewServer = connect(
|
const ViewServer = connect(
|
||||||
state => ({
|
state => ({
|
||||||
showFullContent: state.ui.flow.showFullContent,
|
showFullContent: state.ui.flow.showFullContent,
|
||||||
maxLines: state.ui.flow.maxContentLines
|
maxLines: state.ui.flow.maxContentLines
|
||||||
@ -94,6 +94,6 @@ ViewServer = connect(
|
|||||||
setContentViewDescription,
|
setContentViewDescription,
|
||||||
setContent
|
setContent
|
||||||
}
|
}
|
||||||
)(ContentLoader(ViewServer))
|
)(ContentLoader(PureViewServer))
|
||||||
|
|
||||||
export { Edit, ViewServer, ViewImage }
|
export { Edit, ViewServer, ViewImage }
|
||||||
|
Loading…
Reference in New Issue
Block a user