From d02cbad01f3abfa8a1aad0b55b8bd9cf544090cf Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Thu, 20 Jul 2017 17:56:19 +0200
Subject: disabled links

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

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

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

