-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add undismissable banner in settings
- Loading branch information
1 parent
723fe9d
commit 4f55c7e
Showing
16 changed files
with
82 additions
and
16 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"keychain-access": "Keychain Access", | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to move them to the keychain?" | ||
"keychain-access-copy": "Your seed words are vulnerable because they are stored locally on disk.\nDo you want to <span>move them to the keychain?</span>" | ||
} |
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/containers/floating/Settings/sections/wallet/components/KeychainWarning.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 styled from 'styled-components'; | ||
import { Trans } from 'react-i18next'; | ||
import { PiWarning } from 'react-icons/pi'; | ||
import { Typography } from '@app/components/elements/Typography.tsx'; | ||
import { addToast } from '@app/components/ToastStack/useToastStore.tsx'; | ||
|
||
const Wrapper = styled.div` | ||
border-radius: ${({ theme }) => theme.shape.borderRadius.app}; | ||
background-color: ${({ theme }) => theme.palette.warning.light}; | ||
color: ${({ theme }) => theme.palette.warning.dark}; | ||
padding: 8px 14px; | ||
display: flex; | ||
flex-direction: row; | ||
white-space: pre-wrap; | ||
align-items: center; | ||
gap: 10px; | ||
margin-bottom: 20px; | ||
h6 { | ||
line-height: 1.3; | ||
} | ||
span { | ||
font-weight: 700; | ||
cursor: pointer; | ||
} | ||
`; | ||
|
||
export const KeychainWarning = () => { | ||
function handleKeychain() { | ||
addToast({ | ||
title: 'Add to keychain', | ||
text: 'BE stuff should happen now', | ||
}); | ||
} | ||
return ( | ||
<Wrapper> | ||
<PiWarning size={38} /> | ||
<Typography variant="h6"> | ||
<Trans | ||
i18nKey="wallet:keychain-access-copy" | ||
components={{ | ||
span: <span onClick={handleKeychain} />, | ||
}} | ||
/> | ||
</Typography> | ||
</Wrapper> | ||
); | ||
}; |