Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aaf0a3
commit 12e3071
Showing
12 changed files
with
453 additions
and
4 deletions.
There are no files selected for viewing
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
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,32 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
import type { Node } from 'react'; | ||
import { observer } from 'mobx-react'; | ||
import { intlShape } from 'react-intl'; | ||
import type { $npm$ReactIntl$IntlFormat } from 'react-intl'; | ||
import globalMessages from '../../../i18n/global-messages'; | ||
import classnames from 'classnames'; | ||
|
||
import styles from './TokenOptionRow.scss'; | ||
|
||
type Props = {| | ||
|}; | ||
|
||
@observer | ||
export default class TokenOptionHeader extends Component<Props> { | ||
static contextTypes: {|intl: $npm$ReactIntl$IntlFormat|} = { | ||
intl: intlShape.isRequired, | ||
}; | ||
|
||
render(): Node { | ||
const { intl } = this.context; | ||
|
||
return ( | ||
<div className={classnames([styles.container, styles.headerText])}> | ||
<span>{intl.formatMessage(globalMessages.name)}</span> | ||
<span>{intl.formatMessage(globalMessages.id)}</span> | ||
<span>{intl.formatMessage(globalMessages.amount)}</span> | ||
</div> | ||
); | ||
} | ||
} |
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,26 @@ | ||
// @flow | ||
import React, { Component } from 'react'; | ||
import type { Node } from 'react'; | ||
import { observer } from 'mobx-react'; | ||
import classnames from 'classnames'; | ||
|
||
import styles from './TokenOptionRow.scss'; | ||
|
||
type Props = {| | ||
+displayName: string, | ||
+id: string, | ||
+amount: string, | ||
|}; | ||
|
||
@observer | ||
export default class TokenOptionRow extends Component<Props> { | ||
render(): Node { | ||
return ( | ||
<div className={classnames([styles.container, styles.rowText])}> | ||
<span>{this.props.displayName}</span> | ||
<span>{this.props.id}</span> | ||
<span>{this.props.amount}</span> | ||
</div> | ||
); | ||
} | ||
} |
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,22 @@ | ||
.container { | ||
display: flex; | ||
width: 100%; | ||
span { | ||
width: 30% | ||
} | ||
} | ||
|
||
.headerText { | ||
color: #6B7384; | ||
font-family: var(--font-regular); | ||
font-size: 14px; | ||
letter-spacing: 0; | ||
line-height: 22px; | ||
} | ||
.rowText { | ||
color: #242838; | ||
font-family: var(--font-mono-regular); | ||
font-size: 16px; | ||
letter-spacing: 0; | ||
line-height: 22px; | ||
} |
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
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
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
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
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.