parent
3c08ebeeb4
commit
0e763163c8
@ -0,0 +1,9 @@
|
||||
import { Card } from '../../models/Card';
|
||||
import {SET_FAVS} from '../constants';
|
||||
|
||||
export const setList = (list: []) => {
|
||||
return {
|
||||
type: SET_FAVS,
|
||||
payload: list
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
import {ADD_FAVORITE_DATA, FETCH_DATA} from '../constants';
|
||||
|
||||
export const setList = (List: String[]) => {
|
||||
return {
|
||||
type: FETCH_DATA,
|
||||
payload: List,
|
||||
};
|
||||
}
|
||||
|
||||
// export const setFavList = (List: String[]) => {
|
||||
// return {
|
||||
// type: ADD_FAVORITE_DATA,
|
||||
// payload: List,
|
||||
// };
|
||||
// }
|
Loading…
Reference in new issue