-
Notifications
You must be signed in to change notification settings - Fork 394
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 #1018 from dills122/add-back-to-wallet-password-setup
UI: Add Back Button To Wallet Creation During initial setup, importing wallet views had a back button that would navigate the user to the Add Wallet view, but the Create Password view during wallet creation did not have this setup.
- Loading branch information
Showing
1 changed file
with
20 additions
and
8 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ import { useBackgroundDispatch, useAreKeyringsUnlocked } from "../../hooks" | |
import SharedButton from "../Shared/SharedButton" | ||
import SharedInput from "../Shared/SharedInput" | ||
import titleStyle from "../Onboarding/titleStyle" | ||
import SharedBackButton from "../Shared/SharedBackButton" | ||
|
||
export default function KeyringSetPassword(): ReactElement { | ||
const [password, setPassword] = useState("") | ||
|
@@ -51,8 +52,11 @@ export default function KeyringSetPassword(): ReactElement { | |
} | ||
|
||
return ( | ||
<section> | ||
<div className="wordmark" /> | ||
<section className="standard_width"> | ||
<div className="top"> | ||
<SharedBackButton /> | ||
<div className="wordmark" /> | ||
</div> | ||
<h1 className="serif_header">First, let's secure your wallet</h1> | ||
<div className="subtitle"> | ||
You will NOT be able to change this password for now. | ||
|
@@ -96,6 +100,20 @@ export default function KeyringSetPassword(): ReactElement { | |
</div> | ||
<style jsx> | ||
{` | ||
.top { | ||
display: flex; | ||
width: 100%; | ||
} | ||
.wordmark { | ||
background: url("./images/[email protected]"); | ||
background-size: cover; | ||
width: 52px; | ||
height: 25px; | ||
position: absolute; | ||
left: 0px; | ||
right: 0px; | ||
margin: 0 auto; | ||
} | ||
${titleStyle} | ||
.serif_header { | ||
width: 335px; | ||
|
@@ -107,12 +125,6 @@ export default function KeyringSetPassword(): ReactElement { | |
padding-top: 25px; | ||
background-color: var(--hunter-green); | ||
} | ||
.wordmark { | ||
background: url("./images/[email protected]"); | ||
background-size: cover; | ||
width: 52px; | ||
height: 25px; | ||
} | ||
.input_wrap { | ||
width: 211px; | ||
} | ||
|