Skip to content

Commit

Permalink
Stored Token in localStorage, and used it for fetching data
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Sep 17, 2024
1 parent 7b15b78 commit ad37b85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import "./App.css";
import { useState } from "react";
import { useLocation } from "react-router-dom";

import { lazy } from "react";

const H5web = lazy(() => import("../components/h5web/h5web"));

import SearchComp from "../components/SearchComp/SearchComp";

import UnderDevelopent from "../components/UnderDevelopent/UnderDevelopent";
import H5web from "../components/h5web/h5web";
import Header from "../components/Header/Header";
import Footer from "../components/Footer/Footer";

Expand All @@ -15,7 +18,6 @@ function App() {
const queryParams = new URLSearchParams(location.search);
const h5webParams = queryParams.get("h5web");

// const isLogin = useAuth()

let [domain, setDomain] = useState(null);

Expand Down

0 comments on commit ad37b85

Please sign in to comment.