mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 17:51:43 +10:00
- run eslint --fix across project
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Fade, Modal } from "@material-ui/core";
|
||||
import React from "react";
|
||||
import { getRandomTip } from "../../data/tips";
|
||||
import Logo from "../shared/Logo";
|
||||
import { Fade, Modal } from '@material-ui/core';
|
||||
import React from 'react';
|
||||
import { getRandomTip } from '../../data/tips';
|
||||
import Logo from '../shared/Logo';
|
||||
|
||||
const LoadingScreen = () => {
|
||||
return (
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { navigate } from "gatsby";
|
||||
import React, { useContext } from "react";
|
||||
import UserContext from "../../contexts/UserContext";
|
||||
import LoadingScreen from "./LoadingScreen";
|
||||
import { navigate } from 'gatsby';
|
||||
import React, { useContext } from 'react';
|
||||
import UserContext from '../../contexts/UserContext';
|
||||
import LoadingScreen from './LoadingScreen';
|
||||
|
||||
const PrivateRoute = ({ component: Component, location, ...props }) => {
|
||||
const { user, loading } = useContext(UserContext);
|
||||
@ -11,7 +11,7 @@ const PrivateRoute = ({ component: Component, location, ...props }) => {
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
navigate("/");
|
||||
navigate('/');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user