Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move and register page refactor #277

Merged
merged 55 commits into from
Dec 20, 2024
Merged

Move and register page refactor #277

merged 55 commits into from
Dec 20, 2024

Conversation

zzggo
Copy link
Contributor

@zzggo zzggo commented Dec 11, 2024

Related Issue

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

# Conflicts:
#	src/ui/views/AddWelcome/AddRegister/SetPassword.tsx
#	src/ui/views/LandingPages/Reset/RecoverPassword.tsx
#	src/ui/views/Register/AllSet.tsx
#	src/ui/views/Sync/SyncQr.tsx
#	src/ui/views/WelcomePage/index.tsx
@zzggo zzggo marked this pull request as ready for review December 20, 2024 03:49
Comment on lines 50 to 54
history.push({
pathname: '/import/google',
pathname: '/welcome/accountimport/google',
state: {
accounts: accounts,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer you told the view containing this component to navigate. Hard coding a route makes it hard to re-use components.

@@ -131,9 +131,9 @@ const PasswordIndicator = (props) => {
);
};

const SetPassword = ({ handleClick, mnemonic, username, lastPassword }) => {
const SetPassword = ({ handleSwitchTab, mnemonic, username, lastPassword }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Component name should match file name


import DecryptWallet from './DecryptWallet';
import GoogleAccounts from './GoogleAccounts';
import RecoveryPassword from './GoogleRecoverPassword';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Component name should match file name

@@ -128,9 +128,9 @@ const PasswordIndicator = (props) => {
);
};

const SetPassword = ({ handleClick, mnemonic, pk, tempPassword, goEnd, accountKey }) => {
const SetPassword = ({ handleSwitchTab, mnemonic, pk, tempPassword, goLast, accountKey }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Component name should match file name. It should be RecoveryPassword not RecoverPassword (or SetPassword)

Copy link
Collaborator

@tombeckenham tombeckenham left a comment

Choose a reason for hiding this comment

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

Really great work in this. Just a couple of small changes needed

Copy link
Collaborator

@tombeckenham tombeckenham left a comment

Choose a reason for hiding this comment

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

I'm mostly happy with this. You can merge when you're ready

@zzggo zzggo merged commit 6be4f8d into dev Dec 20, 2024
2 checks passed
@zzggo zzggo deleted the move-and-register-page-refactor branch December 20, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants