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