mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Layout active tab highlight, textarea styling
This commit is contained in:
parent
c5d6518ceb
commit
dd0ad7731b
5 changed files with 15 additions and 5 deletions
|
@ -3,9 +3,8 @@ 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 href = '' // TODO
|
||||
const { route } = props
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@ -25,7 +24,7 @@ export default function Layout (props) {
|
|||
return (
|
||||
<Link href={item.href} key={key} >
|
||||
<a
|
||||
className={href.includes(key) ? 'active' : ''}
|
||||
className={route.includes(key) ? 'active' : ''}
|
||||
>{item.text}</a>
|
||||
</Link>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue