mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-21 20:54:54 +02:00
🔘 I dont want button to be a button
This commit is contained in:
parent
c016350402
commit
9503f68233
@ -5,10 +5,8 @@ import './../styles/Button.scss';
|
|||||||
|
|
||||||
export default function Button({ children, to, color }) {
|
export default function Button({ children, to, color }) {
|
||||||
return (
|
return (
|
||||||
<Link to={to} className="button-link-wrapper">
|
<Link to={to} className={clsx('button', color && 'color-btn', `btn-${color}`)}>
|
||||||
<button className={clsx('button', color && 'color-btn', `btn-${color}`)}>
|
{children}
|
||||||
{children}
|
|
||||||
</button>
|
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user