Layout active tab highlight, textarea styling

This commit is contained in:
MrFry 2020-03-15 11:42:09 +01:00
parent c5d6518ceb
commit dd0ad7731b
5 changed files with 15 additions and 5 deletions

View file

@ -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>
)