-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from ergolabs/dev
Release 2.0.4
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
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
33 changes: 33 additions & 0 deletions
33
src/components/common/Layout/CardanoMaintenance/CardanoMaintenance.tsx
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,33 @@ | ||
import { Trans } from '@lingui/macro'; | ||
import React, { FC } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { applicationConfig } from '../../../../applicationConfig'; | ||
import { Flex } from '../../../../ergodex-cdk'; | ||
import { IsCardano } from '../../../IsCardano/IsCardano'; | ||
|
||
export interface CardanoMaintenanceProps { | ||
readonly className?: string; | ||
} | ||
|
||
const _CardanoMaintenance: FC<CardanoMaintenanceProps> = ({ className }) => ( | ||
<IsCardano> | ||
{applicationConfig.cardanoMaintenance && ( | ||
<Flex className={className} align="center" justify="center"> | ||
<Trans> | ||
Cardano testnet is under maintenance. Some operations may not work as | ||
expected. We are working on it. | ||
</Trans> | ||
</Flex> | ||
)} | ||
</IsCardano> | ||
); | ||
|
||
export const CardanoMaintenance = styled(_CardanoMaintenance)` | ||
height: 30px; | ||
background: #177ddc; | ||
color: #dbdbdb; | ||
font-weight: 400; | ||
font-size: 14px; | ||
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