Skip to content

Commit

Permalink
use new naming for onyx key
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Sep 23, 2024
1 parent ae13bf4 commit e5bee24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,19 @@ function clearAdvancedFilters() {
}

function setShouldShowSavedSearchRenameTooltip() {
Onyx.set(ONYXKEYS.NVP_SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP, true);
Onyx.set(ONYXKEYS.SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP, true);
}

function dismissSavedSearchRenameTooltip() {
const parameters: SetNameValuePairParams = {
name: ONYXKEYS.NVP_SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP,
name: ONYXKEYS.SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP,
value: false,
};

const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.NVP_SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP,
key: ONYXKEYS.SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP,
value: false,
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Search/SearchTypeMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) {
const {singleExecution} = useSingleExecution();
const {translate} = useLocalize();
const [savedSearches] = useOnyx(ONYXKEYS.SAVED_SEARCHES);
const [shouldShowSavedSearchRenameTooltip] = useOnyx(ONYXKEYS.NVP_SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP);
const [shouldShowSavedSearchRenameTooltip] = useOnyx(ONYXKEYS.SHOULD_SHOW_SAVED_SEARCH_RENAME_TOOLTIP);
const {showDeleteModal, DeleteConfirmModal} = useDeleteSavedSearch();

const personalDetails = usePersonalDetails();
Expand Down

0 comments on commit e5bee24

Please sign in to comment.