()
| 59 | } |
| 60 | |
| 61 | public render() { |
| 62 | const { open, title, store } = this.props; |
| 63 | |
| 64 | return ( |
| 65 | <Dialog |
| 66 | onClose={this.handleClose} |
| 67 | aria-labelledby="simple-dialog-title" |
| 68 | open={open} |
| 69 | fullWidth |
| 70 | maxWidth="md" |
| 71 | > |
| 72 | <DialogTitle id="simple-dialog-title" style={{ marginBottom: '0px' }}> |
| 73 | {title} |
| 74 | </DialogTitle> |
| 75 | <DialogContent> |
| 76 | <form |
| 77 | onSubmit={(event) => { |
| 78 | event.preventDefault(); |
| 79 | this.search(); |
| 80 | }} |
| 81 | > |
| 82 | <TextField |
| 83 | disabled |
| 84 | fullWidth |
| 85 | placeholder="Search query" |
| 86 | autoComplete="off" |
| 87 | value={this.state.query} |
| 88 | onChange={(event) => { |
| 89 | this.setState({ query: event.target.value }); |
| 90 | }} |
| 91 | /> |
| 92 | <p /> |
| 93 | {this.state.isSearching ? <p>Searching...</p> : null} |
| 94 | <p /> |
| 95 | <br /> |
| 96 | {this.renderResult()} |
| 97 | <p /> |
| 98 | <br /> |
| 99 | <DialogActions> |
| 100 | <Button |
| 101 | variant="outlined" |
| 102 | onClick={this.handleClose} |
| 103 | style={{ |
| 104 | color: store.currentUser.showDarkTheme ? '#fff' : '#000', |
| 105 | border: store.currentUser.showDarkTheme ? '1px solid #fff' : '1px solid #000', |
| 106 | }} |
| 107 | > |
| 108 | Close |
| 109 | </Button> |
| 110 | </DialogActions> |
| 111 | </form> |
| 112 | </DialogContent> |
| 113 | </Dialog> |
| 114 | ); |
| 115 | } |
| 116 | |
| 117 | private renderResult() { |
| 118 | const { teamId, store } = this.props; |
nothing calls this directly
no test coverage detected