From 8204f0829a626ee718514cccb23ddc7d68f3318a Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Fri, 25 Feb 2022 08:17:00 -0500 Subject: [PATCH] Remove unnecessary useLocation() call --- src/pages/about.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/about.js b/src/pages/about.js index 357e095..36116c6 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -1,5 +1,5 @@ import React, { useEffect } from 'react' -import { Link, useLocation } from 'react-router-dom' +import { Link } from 'react-router-dom' import { connect } from '../state' const About = props => { @@ -8,7 +8,7 @@ const About = props => { props.global.clearStatus() } - const { hash } = useLocation(); + const { hash } = props.location; useEffect(() => { const id = hash.substr(1)