-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the develop branch to the master branch, preparation to v3.5.0
This merge contains the following set of changes: * [Oracle, Improvement] Helpers for overriding AMB signatures (#640) * [Oracle, Improvement] Support manual signatures in erc to native mode (#646) * [ALM, Improvement] ALM: Do not show unneeded failed confirmations (#641) * [ALM, Improvement] ALM: warning for auto-relayed messages (#644) * [ALM, Fix] ALM: reorder warnings
- Loading branch information
Showing
21 changed files
with
445 additions
and
138 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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
import { InfoIcon } from './InfoIcon' | ||
import { CloseIcon } from './CloseIcon' | ||
|
||
const StyledErrorAlert = styled.div` | ||
border: 1px solid var(--warning-color); | ||
border-radius: 4px; | ||
margin-bottom: 20px; | ||
padding-top: 10px; | ||
` | ||
|
||
const CloseIconContainer = styled.div` | ||
cursor: pointer; | ||
` | ||
|
||
const TextContainer = styled.div` | ||
white-space: pre-wrap; | ||
flex-direction: column; | ||
` | ||
|
||
export const WarningAlert = ({ onClick, error }: { onClick: () => void; error: string }) => { | ||
return ( | ||
<div className="row is-center"> | ||
<StyledErrorAlert className="col-12 is-vertical-align row"> | ||
<InfoIcon color="var(--warning-color)" /> | ||
<TextContainer className="col-10">{error}</TextContainer> | ||
<CloseIconContainer className="col-1 is-vertical-align is-center" onClick={onClick}> | ||
<CloseIcon color="var(--warning-color)" /> | ||
</CloseIconContainer> | ||
</StyledErrorAlert> | ||
</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
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.