import React, { useState, useEffect } from "react"; import Table from "./result-table"; import "./favorite-venues.css"; const columns = [ { label: "Name", accessor: "name", sortable: true, sortbyOrder: "asc"}, { label: "Price", accessor: "price", sortable: true, sortbyOrder: "desc"}, { label: "Ratings", accessor: "rating", sortable: true, sortbyOrder: "desc" }, { label: "Distance", accessor: "distance"}, ]; const FavoriteVenue = () => { let returnValue; let venues = JSON.parse(window.localStorage.getItem("fav_venues")); console.log(venues) if (venues.length !== 0){ returnValue = ; } else { returnValue =

No favorites yet...

} return(
Go Back to Search

Favorites

{returnValue}
); }; export default FavoriteVenue;