Skip to content

Commit

Permalink
restaraunt changes
Browse files Browse the repository at this point in the history
Session added, restaurant category filter added, code modification,
  • Loading branch information
vijay-murugeasan committed Dec 27, 2023
1 parent 145b8dd commit 11940c9
Show file tree
Hide file tree
Showing 28 changed files with 248 additions and 1,396 deletions.
5 changes: 4 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ const Restaurants = lazy(() => import("./pages/Restaurants"));
// import Menu from "./pages/Menu";

function App() {
const position = useSelector((state) => state.user.position);
const statePosition = useSelector((state) => state.user.position);
const sessionPosition = JSON.parse(window.sessionStorage.getItem("position"));
const position = sessionPosition || statePosition;

const length = Object.keys(position).length;

const router = createBrowserRouter([
Expand Down
Loading

0 comments on commit 11940c9

Please sign in to comment.