unageanu/jiji2

View on GitHub
sites/src/js/view/components/widgets/text-in-radius.js

Summary

Maintainability
A
0 mins
Test Coverage
import React        from "react"
import Theme        from "../../theme"

export default class TextInRadius extends React.Component {

  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <span className="radius"
        style={{
          borderColor: this.props.color,
          color: this.props.color
        }}>
        {this.props.text}
      </span>
    );
  }
}
TextInRadius.propTypes = {
  text:  React.PropTypes.string.isRequired,
  color: React.PropTypes.string
};
TextInRadius.defaultProps = {
  color: Theme.palette.accent4Color
};