link
This commit is contained in:
parent
04590e3be5
commit
50a8d7d0f8
@ -1,6 +1,6 @@
|
|||||||
import React, { useContext, useEffect } from 'react';
|
import React, { useContext, useEffect } from 'react';
|
||||||
import { GamesStateContext, GamesGuideContext } from '../context/games';
|
import { GamesStateContext, GamesGuideContext } from '../context/games';
|
||||||
import { NavLink, Routes, Route } from 'react-router-dom';
|
import { Routes, Route, Link } from 'react-router-dom';
|
||||||
|
|
||||||
import NewGame from './games/NewGame';
|
import NewGame from './games/NewGame';
|
||||||
import { GameProposalSelector, ActiveGameSelector, GameArchiveSelector } from './games/GameSelector';
|
import { GameProposalSelector, ActiveGameSelector, GameArchiveSelector } from './games/GameSelector';
|
||||||
@ -46,12 +46,14 @@ function ViewSelector() {
|
|||||||
const guide = useContext(GamesGuideContext);
|
const guide = useContext(GamesGuideContext);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className='ViewSelector' >
|
<nav>
|
||||||
|
<div className='ViewSelector'>
|
||||||
<div className='Container' >
|
<div className='Container' >
|
||||||
<NavLink to='/games/new'>New</NavLink>
|
<Link to='new'>New</Link>
|
||||||
<NavLink to='/games/proposal'>Proposal<Counter number={guide.awaiting.proposal} /></NavLink>
|
<Link to='proposal'>Proposal<Counter number={guide.awaiting.proposal} /></Link>
|
||||||
<NavLink to='/games/active' >Active<Counter number={guide.awaiting.active} /></NavLink>
|
<Link to='active' >Active<Counter number={guide.awaiting.active} /></Link>
|
||||||
<NavLink to='/games/archive' >Archive</NavLink>
|
<Link to='archive' >Archive</Link>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user