Skip to content

Commit 8f4e8fd

Browse files
refactor few things
1 parent 64a4bbb commit 8f4e8fd

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

client/constants.js

-2
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,3 @@ export const START_SAVING_PROJECT = 'START_SAVING_PROJECT';
138138
export const END_SAVING_PROJECT = 'END_SAVING_PROJECT';
139139

140140
export const SET_COOKIE_CONSENT = 'SET_COOKIE_CONSENT';
141-
142-
export const SET_SEARCH_TERM = 'SET_SEARCH_TERM';

client/modules/IDE/actions/sorting.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as ActionTypes from '../../../constants';
21
import { setSorting } from '../reducers/sorting';
2+
import { setSearchTerm } from '../reducers/search';
33

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

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

15-
export function setSearchTerm(scope, searchTerm) {
16-
return {
17-
type: ActionTypes.SET_SEARCH_TERM,
18-
query: searchTerm,
19-
scope
20-
};
21-
}
22-
2315
export function resetSearchTerm(scope) {
2416
return setSearchTerm(scope, '');
2517
}

0 commit comments

Comments
 (0)