Feedback and test sender implement, minor fixes with links

This commit is contained in:
MrFry 2020-03-15 10:53:28 +01:00
parent 8a1149d223
commit c5d6518ceb
11 changed files with 154 additions and 89 deletions

View file

@ -1,10 +1,11 @@
import Link from 'next/link'
import tabs from '../data/tabs.json'
import constants from '../constants.json'
// TODO: activelink prop to set link to active
export default function Layout (props) {
const { currPageName } = props
const href = '' // TODO
return (
<div>
@ -24,11 +25,14 @@ export default function Layout (props) {
return (
<Link href={item.href} key={key} >
<a
className={currPageName === key ? 'active' : ''}
className={href.includes(key) ? 'active' : ''}
>{item.text}</a>
</Link>
)
})}
<a href={constants.serverUrl + 'donate'}>
Donate
</a>
</div>
<div className='content'>
{props.children}