-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1157 from yieldprotocol/feat/allowClosingPosition…
…sAfterEulerHack Limit Actions on series
- Loading branch information
Showing
27 changed files
with
320 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { useContext } from 'react'; | ||
import { Box, ResponsiveContext, Text } from 'grommet'; | ||
import { FiAlertCircle, FiAlertTriangle } from 'react-icons/fi'; | ||
import useChainId from '../hooks/useChainId'; | ||
|
||
type PublicNotificationProps = { | ||
children?: any; | ||
}; | ||
|
||
const PublicNotification = ({ children }: PublicNotificationProps) => { | ||
const chainId = useChainId(); | ||
return ( | ||
<> | ||
{chainId === 1 ? ( | ||
<Box direction="row" align="center" justify="between"> | ||
<Box | ||
direction="row" | ||
border={{ color: 'red', size: 'small' }} | ||
pad="small" | ||
gap="small" | ||
align="center" | ||
round="xsmall" | ||
> | ||
<Text color="red" size="large"> | ||
<FiAlertTriangle /> | ||
</Text> | ||
<Text color="red" size="xsmall"> | ||
Full functionality is temporarily resticted on Ethereum mainnet. | ||
</Text> | ||
</Box> | ||
</Box> | ||
) : null} | ||
</> | ||
); | ||
}; | ||
|
||
export default PublicNotification; |
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
Oops, something went wrong.