variables sin usar en nav y index
This commit is contained in:
@@ -4,7 +4,7 @@ import './Nav.scss';
|
||||
import {useStateValue} from '../services/State'
|
||||
|
||||
export const Nav = (props) => {
|
||||
const [context, dispatch] = useStateValue();
|
||||
const context = useStateValue()[0];
|
||||
|
||||
const showLogin = () => {
|
||||
return context.user.auth === false;
|
||||
|
||||
@@ -19,7 +19,7 @@ import {ReleaseView} from "./views/Release";
|
||||
import {Recomended} from "./views/Recomended";
|
||||
import {SongView} from "./views/Song";
|
||||
import {Grid, RowCol} from './components/Grid';
|
||||
import {AuthCallback, AuthLogin, AuthLogout} from "./components/Auth";
|
||||
import {AuthLogin, AuthLogout} from "./components/Auth";
|
||||
|
||||
const Main = (props) => {
|
||||
const navigate = (query) => props.history.push(`/search?query=${query}`);
|
||||
|
||||
Reference in New Issue
Block a user