mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Feedback and test sender implement, minor fixes with links
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user