Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
ae42e823
Commit
ae42e823
authored
Jan 15, 2019
by
Luke Schoen
Browse files
review-fix: Move AnchorTxDetails into TxForm.styles.js
parent
75f1576f
Changes
2
Hide whitespace changes
Inline
Side-by-side
packages/fether-react/src/Send/TxForm/TxForm.js
View file @
ae42e823
...
...
@@ -15,7 +15,6 @@ import { isAddress } from '@parity/api/lib/util/address';
import
{
Link
}
from
'
react-router-dom
'
;
import
{
OnChange
}
from
'
react-final-form-listeners
'
;
import
{
withProps
}
from
'
recompose
'
;
import
styled
from
'
styled-components
'
;
import
{
DivWindowContent
}
from
'
../../assets/theme/shared/styledComponents/DivWindowContent.styles
'
;
import
{
estimateGas
}
from
'
../../utils/estimateGas
'
;
...
...
@@ -25,17 +24,13 @@ import withAccount from '../../utils/withAccount.js';
import
withBalance
,
{
withEthBalance
}
from
'
../../utils/withBalance
'
;
import
withTokens
from
'
../../utils/withTokens
'
;
import
TxDetails
from
'
./TxDetails
'
;
import
{
AnchorTxDetails
Styles
}
from
'
./style
'
;
import
{
AnchorTxDetails
}
from
'
./
TxForm.
style
s
'
;
const
DEFAULT_AMOUNT_MAX_CHARS
=
9
;
const
MEDIUM_AMOUNT_MAX_CHARS
=
14
;
const
MAX_GAS_PRICE
=
40
;
// In Gwei
const
MIN_GAS_PRICE
=
3
;
// Safelow gas price from GasStation, in Gwei
const
AnchorTxDetails
=
styled
.
span
`
${
AnchorTxDetailsStyles
}
;
`
;
@
inject
(
'
parityStore
'
,
'
sendStore
'
)
@
withTokens
@
withProps
(({
match
:
{
params
:
{
tokenAddress
}
},
tokens
})
=>
({
...
...
packages/fether-react/src/Send/TxForm/style.js
→
packages/fether-react/src/Send/TxForm/
TxForm.
style
s
.js
View file @
ae42e823
...
...
@@ -3,12 +3,12 @@
//
// SPDX-License-Identifier: BSD-3-Clause
import
{
css
}
from
'
styled-components
'
;
import
styled
from
'
styled-components
'
;
const
AnchorTxDetails
Styles
=
css
`
const
AnchorTxDetails
=
styled
.
span
`
color:
${
props
=>
props
.
theme
.
darkGrey
}
;
font-size: 0.8rem;
font-weight: 400;
`
;
export
{
AnchorTxDetails
Styles
};
export
{
AnchorTxDetails
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment