Skip to content

Commit

Permalink
Status badge component
Browse files Browse the repository at this point in the history
  • Loading branch information
asitu committed Jul 7, 2018
1 parent d5928b6 commit 1d365b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions daemon/web/components/Status/Status.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import PropTypes from 'prop-types';
import './index.sass';

const Status = ({ title }) => (
<div className="status">
<span class="badge badge-pill badge-primary">{title}</span>
</div>
);

Status.propTypes = {
title: PropTypes.string,
};

export default Status;
13 changes: 13 additions & 0 deletions daemon/web/components/Status/index.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@import '../../styles/index'

.header
color: $grey
display: inline
margin-left: 10px;
font-weight: bold;

.badge-pill
width: 73px
height: 23px
border-radius: 11.5px
background-image: linear-gradient(257deg, $gradient-lightblue, $gradient-green)

0 comments on commit 1d365b3

Please sign in to comment.