Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor few things
  • Loading branch information
PiyushChandra17 committed Jun 15, 2024
commit 8f4e8fdc42d3deec76060376ad929645affed57e
2 changes: 0 additions & 2 deletions client/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,3 @@ export const START_SAVING_PROJECT = 'START_SAVING_PROJECT';
export const END_SAVING_PROJECT = 'END_SAVING_PROJECT';

export const SET_COOKIE_CONSENT = 'SET_COOKIE_CONSENT';

export const SET_SEARCH_TERM = 'SET_SEARCH_TERM';
10 changes: 1 addition & 9 deletions client/modules/IDE/actions/sorting.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ActionTypes from '../../../constants';
import { setSorting } from '../reducers/sorting';
import { setSearchTerm } from '../reducers/search';

export { toggleDirectionForField } from '../reducers/sorting';

Expand All @@ -12,14 +12,6 @@ export function resetSorting() {
return setSorting('createdAt', DIRECTION.DESC);
}

export function setSearchTerm(scope, searchTerm) {
return {
type: ActionTypes.SET_SEARCH_TERM,
query: searchTerm,
scope
};
}

export function resetSearchTerm(scope) {
return setSearchTerm(scope, '');
}