Skip to content

Commit

Permalink
comment ActionCreatorWithPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
rafischer1 committed Jan 25, 2023
1 parent a76da29 commit d625658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/redux/cart/cart.actions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CartActionTypes } from "./cart.types";
import { CartItem } from "./cart.interface";
import { ActionCreatorWithPayload } from "@reduxjs/toolkit";
// import { ActionCreatorWithPayload } from "@reduxjs/toolkit";

export const toggleCartDropdownAction = (): { type: string } => ({
type: CartActionTypes.TOGGLE_CART_DROPDOWN,
Expand Down Expand Up @@ -31,5 +31,5 @@ export const removeItemFromCart = (
payload: item,
});

export type ToggleCartDropdownActive =
ActionCreatorWithPayload<CartActionTypes.TOGGLE_CART_DROPDOWN>;
// export type ToggleCartDropdownActive =
// ActionCreatorWithPayload<CartActionTypes.TOGGLE_CART_DROPDOWN>;

0 comments on commit d625658

Please sign in to comment.