From d41070c7b00fafc974a1a6e7b6d1b42391fa57ed Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Fri, 21 Jul 2017 04:48:52 +0200
Subject: all async paths working

---
 client/components/UI/Link.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'client/components/UI/Link.jsx')

diff --git a/client/components/UI/Link.jsx b/client/components/UI/Link.jsx
index d71582b..b4d2d28 100644
--- a/client/components/UI/Link.jsx
+++ b/client/components/UI/Link.jsx
@@ -2,15 +2,15 @@ import { h, Component } from 'preact'
 import React from 'react'
 // import PropTypes from 'prop-types'
 
-const Link = ({ active, children, onClick, disabled }) => {
+const Link = ({ href, active, children, onClick, selected, disabled }) => {
   if (active) {
     return <span>{children}</span>
   }
-  const className = disabled ? 'disabled' : ''
-
+  const className = disabled ? 'disabled' :
+                    selected ? 'selected' : ''
   return (
     // eslint-disable-next-line
-    <a href="#"
+    <a href={href || '#'}
        class={className}
        onClick={e => {
          e.preventDefault()
-- 
cgit v1.2.3-70-g09d2

