Skip to content

Commit

Permalink
fix: Updates user segment tab when a segment is created/updated (#4950)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoapolo authored Jan 9, 2025
1 parent 2fe4e02 commit 6c9ad03
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 306 deletions.
11 changes: 11 additions & 0 deletions frontend/web/components/PanelSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Icon from './Icon'
import classNames from 'classnames'
import { IonIcon } from '@ionic/react'
import { chevronDown, chevronUp } from 'ionicons/icons'
import Button from './base/forms/Button'
const PanelSearch = class extends Component {
static displayName = 'PanelSearch'

Expand All @@ -19,6 +20,7 @@ const PanelSearch = class extends Component {
listClassName: OptionalString,
nextPage: OptionalFunc,
noResultsText: OptionalString,
onRefresh: OptionalFunc,
paging: OptionalObject,
renderNoResults: propTypes.any,
renderRow: RequiredFunc,
Expand Down Expand Up @@ -209,6 +211,15 @@ const PanelSearch = class extends Component {
</Popover>
</Row>
)}
{this.props.onRefresh && (
<Button
theme='text'
size='xSmall'
onClick={() => this.props.onRefresh()}
>
<Icon name='refresh' fill='#6837FC' width={16} /> Refresh
</Button>
)}
{!!this.props.filterRow && (
<Row>
<Row onClick={() => this.input.focus()}>
Expand Down
Loading

0 comments on commit 6c9ad03

Please sign in to comment.