Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Implements cross-platform Backup/Recovery modal #274

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

ryanml
Copy link
Contributor

@ryanml ryanml commented Nov 13, 2018

Live storybook link: https://brave-ui-ubfmotahgl.now.sh

Preview:
(Slight differences in design vs shared components)
screen shot 2018-11-12 at 10 47 41 pm

@@ -12,12 +12,13 @@ export interface Props {
readOnly?: boolean
placeholder?: string
disabled?: boolean
fieldError?: boolean
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per designs, we need to be able to highlight the text area error red in case of a problem

cc: @jenn-rhim

recoveryKey: event.target.value
})
}

onRestore = (key?: string) => {
key = typeof key === 'string' ? key : this.state.recoveryKey
this.setState({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per design, we want to retain the recovery key in case of a problem

cc: @jenn-rhim

@@ -33,10 +37,12 @@ export interface Props {
error?: React.ReactNode
id?: string
testId?: string
funds?: string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be able to produce a special warning for restore if the user has funds in their wallet.

What should be fed in this prop from assembly is a formatted string of the users BAT balance. Ex: '55 BAT'

Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unable to check the code right now but since CI is good I'm approving to unblock work. we can re-visit in a follow-up if something is not ok

@ryanml ryanml merged commit cbf4b34 into brave:master Nov 15, 2018
@ryanml ryanml deleted the feature-223 branch November 15, 2018 00:02
@NejcZdovc NejcZdovc mentioned this pull request Nov 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants