gift: working on UI ans styles

This commit is contained in:
2025-12-31 14:28:11 +03:00
parent 38c83d5143
commit 71e1d71c96
22 changed files with 720 additions and 93 deletions

View File

@@ -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") {