text: let initialState = {
    name: '',
    // logo: 'holder.js/200x180',
    logo: '',
    category: [],
    products: [],
    orders: [],
    status: 'pending',
    country: '',
    city: '',
    contactNumber: '',
    ownerID: '',
    reviews: [],
    _id: '',
  };
  
  export default (state = initialState, action) => {
  
  
    const { type, payload } = action;
    switch (type) {
    case 'ADDSTORE':
      return {...state,...payload};
    case 'GETSTORE':
      return {...state,...payload};
    case 'ADD STORE REVIEW':
      let reviews = state.reviews;
      reviews.push(payload);
      return {...state, ...reviews};
    case 'GET STORE ORDERS':
     
      return {...state, orders:payload};
    default:
      return state;
    }
  };
  
  