fix(base) drop old button implementation
This commit is contained in:
parent
d63e0c5ab6
commit
3f0e50a9cd
|
@ -1,41 +0,0 @@
|
|||
/* @flow */
|
||||
|
||||
import Button from '@atlaskit/button/standard-button';
|
||||
import React, { Component } from 'react';
|
||||
|
||||
type Props = {
|
||||
|
||||
/**
|
||||
* React Elements to display within the component.
|
||||
*/
|
||||
children: React$Node | Object,
|
||||
|
||||
/**
|
||||
* Handler called when the user presses the button.
|
||||
*/
|
||||
onValueChange: Function
|
||||
};
|
||||
|
||||
/**
|
||||
* Renders a button.
|
||||
*/
|
||||
export default class ButtonImpl extends Component<Props> {
|
||||
/**
|
||||
* Implements React's {@link Component#render()}.
|
||||
*
|
||||
* @inheritdoc
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const { onValueChange } = this.props;
|
||||
|
||||
return (
|
||||
<Button
|
||||
appearance = 'primary'
|
||||
onClick = { onValueChange }
|
||||
type = 'button'>
|
||||
{ this.props.children }
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
// @flow
|
||||
|
||||
export { default as BaseIndicator } from './BaseIndicator';
|
||||
export { default as Button } from './Button';
|
||||
export { default as Container } from './Container';
|
||||
export { default as Image } from './Image';
|
||||
export { default as Linkify } from './Linkify';
|
||||
|
|
Loading…
Reference in New Issue