mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
feat: add custom button component
This commit is contained in:
33
src/components/Button.js
Normal file
33
src/components/Button.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import {
|
||||||
|
Button as ButtonBootstrap
|
||||||
|
} from 'reactstrap';
|
||||||
|
|
||||||
|
const style = {
|
||||||
|
borderRadius: 20
|
||||||
|
};
|
||||||
|
|
||||||
|
class Button extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
this.state = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<ButtonBootstrap
|
||||||
|
tag={this.props.tag}
|
||||||
|
to={this.props.to}
|
||||||
|
color="primary"
|
||||||
|
outline
|
||||||
|
style={style}
|
||||||
|
>
|
||||||
|
{this.props.children}
|
||||||
|
</ButtonBootstrap>
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Button;
|
Reference in New Issue
Block a user