Skip to content

Commit

Permalink
Merge pull request #2 from vishnuvinay89/all-saas-dev
Browse files Browse the repository at this point in the history
useSelector import issue fix
  • Loading branch information
Ishan-ttpl authored Jan 3, 2025
2 parents 9b78a9c + e4fbf37 commit 82e6e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/AppContent/AppContent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, Fragment } from "react";
import { Routes, Route, useNavigate } from "react-router-dom";
import CustomizedSnackbars from "../../views/Snackbar/CustomSnackbar";
import { useSelector } from "react-redux";

const PrivateRoute = (props) => {
const { userId } = useSelector((state) => state.user);
Expand All @@ -11,7 +12,6 @@ const PrivateRoute = (props) => {
}
}, [userId]);


return <>{props.children}</>;
};
const AppContent = ({ routes }) => {
Expand Down

0 comments on commit 82e6e4e

Please sign in to comment.