-
Notifications
You must be signed in to change notification settings - Fork 41
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
4 changed files
with
65 additions
and
2 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 |
---|---|---|
|
@@ -113,6 +113,6 @@ | |
] | ||
}, | ||
"engines": { | ||
"node": "^19" | ||
"node": "^20" | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
src/components/AddLiquidityForm/LowLiquidityWarning/LowLiquidityWarning.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,28 @@ | ||
import { CloseCircleFilled, Flex, Tag, Typography } from '@ergolabs/ui-kit'; | ||
import { FC } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const _LowLiquidityWarning: FC<{ className?: string }> = ({ className }) => ( | ||
<Tag color="error" className={className}> | ||
<Flex width="100%"> | ||
<Flex.Item marginRight={2}> | ||
<CloseCircleFilled | ||
style={{ fontSize: 16, position: 'relative', top: '4px' }} | ||
/> | ||
</Flex.Item> | ||
<Typography.Body> | ||
Note that there is little liquidity in this pool and the price may | ||
change right before you add liquidity. This could cause you to lose a | ||
significant portion of your assets permanently. | ||
</Typography.Body> | ||
</Flex> | ||
</Tag> | ||
); | ||
|
||
export const LowLiquidityWarning = styled(_LowLiquidityWarning)` | ||
padding: calc(var(--spectrum-base-gutter) * 2) | ||
calc(var(--spectrum-base-gutter) * 4); | ||
text-align: justify; | ||
text-wrap: initial; | ||
width: 100%; | ||
`; |
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