diff --git a/public/googlee8016108fb58f0dc.html b/public/googlee8016108fb58f0dc.html new file mode 100644 index 0000000..8401290 --- /dev/null +++ b/public/googlee8016108fb58f0dc.html @@ -0,0 +1 @@ +google-site-verification: googlee8016108fb58f0dc.html \ No newline at end of file diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx index 6500472..1581919 100644 --- a/src/Pages/Home/Home.jsx +++ b/src/Pages/Home/Home.jsx @@ -4,7 +4,7 @@ import GoMasaiLogo from "../../assets/images/gomasai.png"; // import GoMasaiLogo from "../../assets/images/gomasaiLogo.png"; import { Link, useNavigate } from 'react-router-dom'; import { useSelector, useDispatch } from "react-redux"; -import { setSearchinput, setUserlog } from "../../Redux/action"; +import { setSearchinput } from "../../Redux/action"; function Home() { const { navbar_searchValur } = useSelector((state) => state); @@ -19,110 +19,12 @@ function Home() { navigate("/result") } - const signIn = () => { - } - - - const [user, setUser] = React.useState(JSON.parse(localStorage.getItem('userlogindata')) || { - userauth: false, - name: "Guest", - email: "guest@gomasai.com", - photo: "https://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Circle-icons-profile.svg/1024px-Circle-icons-profile.svg.png" - }) - - // eslint-disable-next-line no-unused-vars - function userDataAddInDatabase(data) { - - let userObject = { - userauth: true, - name: data.displayName, - email: data.email, - photo: data.photoURL, - metadata: data.metadata - } - - dispatch(setUserlog(data)) - - localStorage.setItem('userlogindata', JSON.stringify(userObject)) - setUser(userObject) - } return ( <>
Account
- - : -Account
-Search
- - - -Maps
- - - -YouTube
- - - - -News
- - - - -Translate
- - - -Books
- - - -Shopping
- - - -Google Account
-{user.name}
-{user.email}
-Sign In
Video for "{navbar_searchValur}" not found
} @@ -50,7 +50,7 @@ function Videos() {