update footer BS height & enhnace custom split bill BS styles
This commit is contained in:
@@ -74,7 +74,8 @@ interface CartState {
|
||||
totalServices: number;
|
||||
hiddenServices: number;
|
||||
visibleServices: number;
|
||||
}
|
||||
fee: number;
|
||||
}
|
||||
|
||||
// localStorage keys
|
||||
export const CART_STORAGE_KEYS = {
|
||||
@@ -198,6 +199,7 @@ const initialState: CartState = {
|
||||
totalServices: 8,
|
||||
hiddenServices: 0,
|
||||
visibleServices: 0,
|
||||
fee: 0,
|
||||
};
|
||||
|
||||
const orderSlice = createSlice({
|
||||
@@ -209,6 +211,7 @@ const orderSlice = createSlice({
|
||||
},
|
||||
updateRestaurant(state, action: PayloadAction<Partial<RestaurantDetails>>) {
|
||||
state.restaurant = action.payload;
|
||||
state.fee = Number(action.payload.delivery_fees || 0);
|
||||
state.visibleServices = [
|
||||
action.payload.dineIn,
|
||||
action.payload.delivery,
|
||||
|
||||
Reference in New Issue
Block a user