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:
parent
8a1149d223
commit
c5d6518ceb
11 changed files with 154 additions and 89 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue