mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Remove unnecessary useLocation() call
This commit is contained in:
parent
9b902f5cf5
commit
8204f0829a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue