Skip to content

Commit

Permalink
Merge pull request #1018 from dills122/add-back-to-wallet-password-setup
Browse files Browse the repository at this point in the history
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
Shadowfiend authored Feb 28, 2022
2 parents 1ae6b2f + c67f4df commit 7a3c222
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions ui/components/Keyring/KeyringSetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
Expand Down Expand Up @@ -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&apos;s secure your wallet</h1>
<div className="subtitle">
You will NOT be able to change this password for now.
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 7a3c222

Please sign in to comment.