-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
Showing
42 changed files
with
2,956 additions
and
472 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@import 'common/sass/variables'; | ||
|
||
.AwaitingMiningModal { | ||
&-content { | ||
text-align: center; | ||
max-width: 40rem; | ||
word-break: break-word; | ||
} | ||
} |
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,42 @@ | ||
import React, { ReactElement } from 'react'; | ||
import translate, { translateRaw } from 'translations'; | ||
import Modal from 'components/ui/Modal'; | ||
import './index.scss'; | ||
import { Spinner } from 'components/ui'; | ||
import { ETHTxExplorer } from 'config'; | ||
|
||
interface Props { | ||
isOpen: boolean; | ||
message?: ReactElement<any>; | ||
transactionHash: string; | ||
} | ||
|
||
export default class AwaitingMiningModal extends React.Component<Props> { | ||
public render() { | ||
return ( | ||
<Modal | ||
title={translateRaw('AWAITING_MINING')} | ||
isOpen={this.props.isOpen} | ||
// tslint:disable-next-line:no-empty | ||
handleClose={() => {}} | ||
> | ||
<div className="AwaitingMiningModal-content"> | ||
<Spinner size="x5" /> | ||
<br /> | ||
<br /> | ||
{translate('SCHEDULE_TRANSACTION_MINING_PART_1')} | ||
<a | ||
href={ETHTxExplorer(this.props.transactionHash)} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{translate('SCHEDULE_TRANSACTION_MINING_PART_2')} | ||
</a> | ||
<br /> | ||
<br /> | ||
{this.props.message} | ||
</div> | ||
</Modal> | ||
); | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -64,9 +64,4 @@ | |
color: shade-dark(0.7); | ||
} | ||
} | ||
|
||
&-offline { | ||
margin-bottom: 0; | ||
text-align: center; | ||
} | ||
} |
Oops, something went wrong.