Skip to content

Commit

Permalink
Configure React
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-dhangar committed Sep 9, 2024
1 parent e7dceb5 commit 93a8f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12.x"
- run: npm ci
node-version: '14'
- run: npm run build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion src/store/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const API = process.env.REACT_APP_BASE_URL+"/api";
export const AuthProvider = ({ children }) => {
const [token, setToken] = useState(localStorage.getItem("authToken"));
const [user, setUser] = useState("");
// const [isLoading, setIsLoading] = useState(true);
const [isLoading, setIsLoading] = useState(true);

const storTokenInLocalStorage = (token) => {
setToken(token);
Expand Down

0 comments on commit 93a8f62

Please sign in to comment.