Skip to content

Commit

Permalink
add query info text per feedback (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Amy Chen <[email protected]>
  • Loading branch information
achen2401 and Amy Chen authored Feb 7, 2025
1 parent dd32de9 commit ed9c9e8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ class PanelGroupColumn extends React.Component<Props> {
}
}

public renderQueryInfo(queryState : string) {
if (queryState !== CohortStateType.NOT_LOADED) return null;
return <div className="text-muted text-center mb-1">( To query, drag and drop concepts into boxes below )</div>
}

public render() {
const { dispatch, panels, panelFilters, queryState } = this.props;
return (
Expand All @@ -107,6 +112,7 @@ class PanelGroupColumn extends React.Component<Props> {
<span>{this.setRunQueryButtonContent()}</span>
</div>
</div>
{this.renderQueryInfo(queryState)}
<PanelFilterGroup dispatch={dispatch} filters={panelFilters} />
<PanelGroup dispatch={dispatch} panels={panels} queryState={queryState} />
</div>
Expand Down

0 comments on commit ed9c9e8

Please sign in to comment.