summaryrefslogtreecommitdiff
path: root/client/components/UI/Link.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/UI/Link.jsx')
-rw-r--r--client/components/UI/Link.jsx8
1 files changed, 4 insertions, 4 deletions
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()