🎨 standardJS all files

This commit is contained in:
divlo committed 2020-08-03 14:14:45 +02:00
1 parent dc962c9120
commit 4be7a46a10
85 files changed
+3595 -2383

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@ import { useContext } from 'react'
import { UserContext } from '../contexts/UserContext'
import redirect from '../utils/redirect'
const withoutAuth = (WrappedComponent) => {
const Component = (props) => {
const withoutAuth = WrappedComponent => {
const Component = props => {
const { isAuth, user } = useContext(UserContext)
if (isAuth) return redirect({}, `/users/${user.name}`)