Skip to content

Commit

Permalink
fix(list): add prefix to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Oct 24, 2023
1 parent 42fb5f5 commit 4cf95ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const ConstantSelectionFilter = ({
filterable={filterable}
filterPlaceholder={i18n.t('Type to filter options')}
noMatchText={i18n.t('No matches')}
prefix={label}
>
<SingleSelectOption key={'all'} label={'All'} value={''} />
{Object.entries(constants).map(([key, label]) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const DataElementInDataSetFilter = () => {
filterable={true}
filterPlaceholder={i18n.t('Type to filter options')}
noMatchText={i18n.t('No matches')}
prefix={i18n.t('Data set')}
>
<SingleSelectOption key={'all'} label={'All'} value={''} />
{options?.map(({ label, value }) => (
Expand Down

0 comments on commit 4cf95ce

Please sign in to comment.