-
Notifications
You must be signed in to change notification settings - Fork 5k
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
1 parent
d76a660
commit 548e0f4
Showing
6 changed files
with
115 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web/5.27.8 | ||
web/5.28.0 |
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,48 @@ | ||
import Column from 'components/Column' | ||
import Identicon, { IdenticonType, useIdenticonType } from 'components/Identicon' | ||
import { PopupContainer } from 'components/Popups/PopupContent' | ||
import Row from 'components/Row' | ||
import { Trans } from 'i18n' | ||
import { useAtom } from 'jotai' | ||
import { atomWithStorage } from 'jotai/utils' | ||
import { X } from 'react-feather' | ||
import styled from 'styled-components' | ||
import { ClickableStyle, ThemedText } from 'theme/components' | ||
import { useAccount } from 'wagmi' | ||
|
||
const StyledColumn = styled(Column)` | ||
width: 242px; | ||
` | ||
|
||
const StyledClose = styled(X)` | ||
right: 10px; | ||
top: 10px; | ||
stroke: ${({ theme }) => theme.neutral2}; | ||
${ClickableStyle} | ||
` | ||
|
||
export const showUniconV2InfoPopupAtom = atomWithStorage('showUniconV2InfoPopup', true) | ||
|
||
export default function UniconV2InfoPopup() { | ||
const account = useAccount() | ||
const isUniconV2 = useIdenticonType(account.address) === IdenticonType.UNICON_V2 | ||
const [showUniconV2InfoPopup, setShowUniconV2InfoPopup] = useAtom(showUniconV2InfoPopupAtom) | ||
|
||
return isUniconV2 && account.isConnected && showUniconV2InfoPopup ? ( | ||
<PopupContainer> | ||
<Row align="flex-start" justify="space-between" padding="12px" gap="md"> | ||
<Identicon account={account.address} size={40} /> | ||
<StyledColumn> | ||
<ThemedText.BodyPrimary> | ||
<Trans>Your Unicon got a new look</Trans> | ||
</ThemedText.BodyPrimary> | ||
<ThemedText.BodySecondary> | ||
<Trans>We gave your wallet's unique Unicon a makeover.</Trans> | ||
</ThemedText.BodySecondary> | ||
</StyledColumn> | ||
<StyledClose onClick={() => setShowUniconV2InfoPopup(false)} /> | ||
</Row> | ||
</PopupContainer> | ||
) : null | ||
} |
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