@eaze/button
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@eaze/button", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Button component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import Colors from '@eaze/color' | ||
import Spinner from '@eaze/spinner' | ||
@@ -35,3 +34,3 @@ | ||
inverted: PropTypes.bool, | ||
supersize: PropTypes.bool, | ||
supersize: PropTypes.bool | ||
} | ||
@@ -38,0 +37,0 @@ |
@@ -35,3 +35,3 @@ import styled from 'styled-components' | ||
TRANSPARENT: 'transparent', | ||
TEXT: 'white' | ||
TEXT: 'transparent' | ||
} | ||
@@ -84,3 +84,3 @@ | ||
function fetchBackgroundColor (type, inverted) { | ||
return inverted || type === 'TEXT' ? 'white' : colorMap[type] | ||
return inverted ? 'white' : colorMap[type] | ||
} | ||
@@ -87,0 +87,0 @@ |
Sorry, the diff of this file is too big to display
86076
417