@benkeentestorg/buttons
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -38,6 +38,4 @@ import { createElement, Component } from 'react'; | ||
PrimaryButton.prototype.render = function () { | ||
var _a = this.props, label = _a.label, onClick = _a.onClick; | ||
return (createElement("button", { onClick: onClick }, | ||
label, | ||
"!!")); | ||
var _a = this.props, label = _a.label, className = _a.className, onClick = _a.onClick; | ||
return (createElement("button", { onClick: onClick, className: className }, label)); | ||
}; | ||
@@ -44,0 +42,0 @@ return PrimaryButton; |
import * as React from 'react'; | ||
export interface ButtonProps { | ||
label: string; | ||
className?: string; | ||
onClick?: () => void; | ||
@@ -5,0 +6,0 @@ } |
@@ -40,6 +40,4 @@ 'use strict'; | ||
PrimaryButton.prototype.render = function () { | ||
var _a = this.props, label = _a.label, onClick = _a.onClick; | ||
return (React.createElement("button", { onClick: onClick }, | ||
label, | ||
"!!")); | ||
var _a = this.props, label = _a.label, className = _a.className, onClick = _a.onClick; | ||
return (React.createElement("button", { onClick: onClick, className: className }, label)); | ||
}; | ||
@@ -46,0 +44,0 @@ return PrimaryButton; |
{ | ||
"name": "@benkeentestorg/buttons", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Button components.", | ||
@@ -19,3 +19,2 @@ "author": "Ben Keen <ben.keen@gmail.com>", | ||
"scripts": { | ||
"tsc": "tsc", | ||
"build": "rollup -c", | ||
@@ -46,3 +45,3 @@ "watch": "rollup -c -w", | ||
}, | ||
"gitHead": "69b2df1235748bce458611e18740c6d4e7d208c6" | ||
"gitHead": "0393388de23aa84fff5af91926d1217d7b45d16e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27894
86