gift: working on UI ans styles
This commit is contained in:
@@ -77,7 +77,6 @@ interface CartState {
|
||||
visibleServices: number;
|
||||
fee: number;
|
||||
giftType: string;
|
||||
|
||||
}
|
||||
|
||||
// localStorage keys
|
||||
@@ -475,8 +474,14 @@ const orderSlice = createSlice({
|
||||
);
|
||||
}
|
||||
},
|
||||
updateGiftDetails(state, action: PayloadAction<GiftDetailsType | null>) {
|
||||
state.giftDetails = action.payload;
|
||||
updateGiftDetails(
|
||||
state,
|
||||
action: PayloadAction<Partial<GiftDetailsType> | null>,
|
||||
) {
|
||||
state.giftDetails = {
|
||||
...state.giftDetails,
|
||||
...action.payload,
|
||||
} as GiftDetailsType;
|
||||
|
||||
// Sync to localStorage
|
||||
if (typeof window !== "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user