-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Updates GAS fee calculation logic * Fix type errors * Add alert if user is attempting to send total GAS balance * Remove testing stub
- Loading branch information
1 parent
e95b134
commit b2fa847
Showing
5 changed files
with
147 additions
and
9 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
55 changes: 55 additions & 0 deletions
55
app/components/TotalGasBeingSentAlert/TotalGasBeingSentAlert.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,55 @@ | ||
@import '../../styles/variables'; | ||
|
||
.alertBox { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 13px; | ||
margin-bottom: 20px; | ||
max-width: 1100px; | ||
box-sizing: border-box; | ||
background-color: rgba(211, 85, 231, 0.52); | ||
border-radius: 3px; | ||
|
||
.iconContainer { | ||
width: 70px; | ||
background-color: #d355e7; | ||
display: flex; | ||
align-items: center; | ||
border-radius: 3px 0 0 3px; | ||
height: 100px; | ||
justify-content: center; | ||
} | ||
|
||
h2 { | ||
font-family: var(--font-gotham-bold); | ||
font-size: 15px; | ||
font-weight: bold; | ||
margin-bottom: 6px; | ||
margin: 0 0 6px 0; | ||
margin-left: 12px; | ||
} | ||
b { | ||
font-family: var(--font-gotham-bold); | ||
} | ||
|
||
.warning { | ||
margin-left: 12px; | ||
} | ||
|
||
svg { | ||
margin: 6px; | ||
vertical-align: center; | ||
min-width: 31px; | ||
min-height: 28px; | ||
|
||
path { | ||
fill: var(--input-text); | ||
} | ||
} | ||
|
||
a { | ||
color: var(--input-text); | ||
text-decoration: underline; | ||
} | ||
} |
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,29 @@ | ||
// @flow | ||
import React from 'react' | ||
|
||
import classNames from 'classnames' | ||
|
||
import styles from './TotalGasBeingSentAlert.scss' | ||
import WarningIcon from '../../assets/icons/warning.svg' | ||
|
||
const electron = require('electron').remote | ||
|
||
const TotalGasBeingSentAlert = () => ( | ||
<section className={classNames(styles.alertBox, 'alertBox')}> | ||
<div className={styles.iconContainer}> | ||
<WarningIcon /> | ||
</div> | ||
<div> | ||
<div> | ||
<h2>WARNING</h2> | ||
</div> | ||
<div className={styles.warning}> | ||
<b>You are about to send all of your GAS out of this wallet. </b> | ||
You will not be able to perform any additional future transactions on N3 | ||
without a GAS balance to pay transaction fees. | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
|
||
export default TotalGasBeingSentAlert |
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