-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-e2e-screenshot-commit
- Loading branch information
Showing
18 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
Binary file modified
BIN
+2 Bytes
(100%)
...screenshots/simulator/recurring/Recurring_limit_limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-25 Bytes
(100%)
...screenshots/simulator/recurring/Recurring_range_limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-591 Bytes
(98%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+852 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+351 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+497 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/editPrices/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
48 changes: 48 additions & 0 deletions
48
src/libs/modals/modals/ModalTokenList/ModalTokenListDuplicateWarning.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,48 @@ | ||
import { Tooltip } from 'components/common/tooltip/Tooltip'; | ||
import { NewTabLink } from 'libs/routing'; | ||
import { Token } from 'libs/tokens'; | ||
import { getExplorerLink } from 'utils/blockExplorer'; | ||
import { shortenString } from 'utils/helpers'; | ||
import { NATIVE_TOKEN_ADDRESS } from 'utils/tokens'; | ||
import { ReactComponent as IconLink } from 'assets/icons/link.svg'; | ||
import { ReactComponent as IconWarning } from 'assets/icons/warning.svg'; | ||
import { FC } from 'react'; | ||
|
||
type Props = { | ||
token: Token; | ||
}; | ||
|
||
export const ModalTokenListDuplicateWarning: FC<Props> = ({ token }) => { | ||
const isNativeToken = token.address === NATIVE_TOKEN_ADDRESS; | ||
|
||
const duplicatedTokenTooltipElement = (token: Token) => { | ||
if (isNativeToken) return 'This is the native token of the chain.'; | ||
|
||
return ( | ||
<> | ||
<p> | ||
It appears there might be multiple tokens with the same symbol. Please | ||
ensure you select the correct address. | ||
<br /> {token.symbol}:<br /> | ||
</p> | ||
<div className="flex items-center"> | ||
{token.address} | ||
<NewTabLink to={getExplorerLink('token', token.address)}> | ||
<IconLink className="ml-6 w-14 text-white/80" /> | ||
</NewTabLink> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
return ( | ||
<div className="text-12 flex max-w-full truncate py-2 text-white/60"> | ||
{isNativeToken ? 'Native Gas Token' : shortenString(token.address)} | ||
<Tooltip maxWidth={450} element={duplicatedTokenTooltipElement(token)}> | ||
<span> | ||
<IconWarning className="ml-5 size-14 text-white/60" /> | ||
</span> | ||
</Tooltip> | ||
</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
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