Skip to content

Commit

Permalink
Merge pull request #49186 from Expensify/cmartins-createPinnedFilter
Browse files Browse the repository at this point in the history
Create pinned status
  • Loading branch information
luacmartins committed Sep 18, 2024
2 parents 6bef045 + d61c06f commit d9859a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5517,6 +5517,7 @@ const CONST = {
SENT: 'sent',
ATTACHMENTS: 'attachments',
LINKS: 'links',
PINNED: 'pinned',
},
},
TABLE_COLUMNS: {
Expand Down
6 changes: 6 additions & 0 deletions src/components/Search/SearchStatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ const chatOptions: Array<{key: ChatSearchStatus; icon: IconAsset; text: Translat
text: 'common.links',
query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.CHAT, CONST.SEARCH.STATUS.CHAT.LINKS),
},
{
key: CONST.SEARCH.STATUS.CHAT.PINNED,
icon: Expensicons.Pin,
text: 'search.filters.pinned',
query: SearchUtils.buildCannedSearchQuery(CONST.SEARCH.DATA_TYPES.CHAT, CONST.SEARCH.STATUS.CHAT.PINNED),
},
];

function getOptions(type: SearchDataTypes) {
Expand Down

0 comments on commit d9859a3

Please sign in to comment.