@rentalutions/elements
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -66,7 +66,7 @@ 'use strict'; | ||
props, | ||
children | ||
props.children | ||
);else return _react2.default.createElement( | ||
ButtonWrapper, | ||
props, | ||
children | ||
props.children | ||
); | ||
@@ -73,0 +73,0 @@ }; |
{ | ||
"name": "@rentalutions/elements", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "A suite of elements for the consistent and responsive UI", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -46,4 +46,4 @@ import React from 'react' | ||
const Button = props => { | ||
if (props.to) return <Link {...props}>{children}</Link> | ||
else return <ButtonWrapper {...props}>{children}</ButtonWrapper> | ||
if (props.to) return <Link {...props}>{props.children}</Link> | ||
else return <ButtonWrapper {...props}>{props.children}</ButtonWrapper> | ||
} | ||
@@ -50,0 +50,0 @@ |
445344