Skip to content

Commit

Permalink
delete logic related to unread inbox refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Dec 11, 2023
1 parent d3b8387 commit 0271f04
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 127 deletions.
36 changes: 0 additions & 36 deletions src/shared/hooks/useCases/useUnreadInboxItems.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/store/states/inbox/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ export const getInboxItems = createAsyncAction(
string
>();

export const refreshUnreadInboxItems = createAsyncAction(
InboxActionType.REFRESH_UNREAD_INBOX_ITEMS,
InboxActionType.REFRESH_UNREAD_INBOX_ITEMS_SUCCESS,
InboxActionType.REFRESH_UNREAD_INBOX_ITEMS_FAILURE,
InboxActionType.REFRESH_UNREAD_INBOX_ITEMS_CANCEL,
)<void, void, void, string>();

export const addNewInboxItems = createStandardAction(
InboxActionType.ADD_NEW_INBOX_ITEMS,
)<
Expand Down
5 changes: 0 additions & 5 deletions src/store/states/inbox/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ export enum InboxActionType {
GET_INBOX_ITEMS_FAILURE = "@INBOX/GET_INBOX_ITEMS_FAILURE",
GET_INBOX_ITEMS_CANCEL = "@INBOX/GET_INBOX_ITEMS_CANCEL",

REFRESH_UNREAD_INBOX_ITEMS = "@INBOX/REFRESH_UNREAD_INBOX_ITEMS",
REFRESH_UNREAD_INBOX_ITEMS_SUCCESS = "@INBOX/REFRESH_UNREAD_INBOX_ITEMS_SUCCESS",
REFRESH_UNREAD_INBOX_ITEMS_FAILURE = "@INBOX/REFRESH_UNREAD_INBOX_ITEMS_FAILURE",
REFRESH_UNREAD_INBOX_ITEMS_CANCEL = "@INBOX/REFRESH_UNREAD_INBOX_ITEMS_CANCEL",

ADD_NEW_INBOX_ITEMS = "@INBOX/ADD_NEW_INBOX_ITEMS",

UPDATE_INBOX_ITEM = "@INBOX/UPDATE_INBOX_ITEM",
Expand Down
6 changes: 0 additions & 6 deletions src/store/states/inbox/saga/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { takeLatestWithCancel } from "@/shared/utils/saga";
import * as actions from "../actions";
import { getInboxItems } from "./getInboxItems";
import { refreshUnreadInboxItems } from "./refreshUnreadInboxItems";

export function* mainSaga() {
yield takeLatestWithCancel(
actions.getInboxItems.request,
actions.getInboxItems.cancel,
getInboxItems,
);
yield takeLatestWithCancel(
actions.refreshUnreadInboxItems.request,
actions.refreshUnreadInboxItems.cancel,
refreshUnreadInboxItems,
);
}
73 changes: 0 additions & 73 deletions src/store/states/inbox/saga/refreshUnreadInboxItems.ts

This file was deleted.

0 comments on commit 0271f04

Please sign in to comment.