-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2211 from santiment/enhance/signals/pro
enhance/signals/pro
- Loading branch information
Showing
10 changed files
with
298 additions
and
169 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
|
||
const Icon = ({ className }) => ( | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
viewBox='0 0 24 24' | ||
className={className} | ||
fill='none' | ||
> | ||
<rect width='24' height='24' fill='var(--texas-rose-light)' rx='12' /> | ||
<path | ||
fill='var(--texas-rose)' | ||
d='M16.5 9.41c0-.51-.6-.77-.96-.4l-1.29 1.33-1.85-1.92a.55.55 0 00-.8 0l-1.85 1.92L8.46 9c-.35-.36-.96-.1-.96.42v5c0 .32.25.58.56.58h7.88c.3 0 .56-.26.56-.58v-5z' | ||
/> | ||
</svg> | ||
) | ||
|
||
export default Icon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/pages/Index/Section/KeystackeholdersEvents/StackholderTitle/Labels.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import { READABLE_NAMES } from '../hooks' | ||
import styles from './Labels.module.scss' | ||
|
||
const CardLabels = ({ labels }) => ( | ||
<div className={styles.labels}> | ||
{labels.map(label => ( | ||
<div key={label} className={styles.label}> | ||
{READABLE_NAMES[label] || label} | ||
</div> | ||
))} | ||
</div> | ||
) | ||
|
||
export default CardLabels |
19 changes: 19 additions & 0 deletions
19
src/pages/Index/Section/KeystackeholdersEvents/StackholderTitle/Labels.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@import '~@santiment-network/ui/mixins'; | ||
|
||
.labels { | ||
display: flex; | ||
margin-top: 8px; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.label { | ||
@include text('caption'); | ||
|
||
color: var(--rhino); | ||
padding: 4px 8px; | ||
margin-right: 8px; | ||
margin-bottom: 8px; | ||
border-radius: $border-radius; | ||
border: 1px solid var(--porcelain); | ||
background-color: var(--white); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.