Skip to content

Commit

Permalink
fixed: update routtes
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Dec 20, 2024
1 parent bb3c85d commit 31313aa
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 1,660 deletions.
2 changes: 1 addition & 1 deletion src/ui/FRWComponent/LLNotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const LLNotFound = ({ setShowDialog }) => {
<Button
variant="contained"
color="primary"
onClick={() => history.push('/recover')}
onClick={() => history.push('/welcome')}
disableElevation
fullWidth
sx={{
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/InnerRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Resetpwd from './Setting/Resetpwd';
import Security from './Setting/Security';
import Settingone from './Setting/Settingone';
import Switchaccount from './Setting/Switchaccount';
import './MainRoute.css';
import './Landing.css';
import WalletList from './Setting/Wallet';
import RemoveWallet from './Setting/Wallet/RemoveWallet';
import WalletDetail from './Setting/Wallet/WalletDetail';
Expand Down
File renamed without changes.
10 changes: 4 additions & 6 deletions src/ui/views/MainRoute.tsx → src/ui/views/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ import { Switch, Route } from 'react-router-dom';
import Forgot from './LandingPages/Forgot';
import Recover from './LandingPages/Forgot/Recover';
import Reset from './LandingPages/Forgot/Reset';
import RecoverRegister from './LandingPages/RecoverRegister';
import Welcome from './LandingPages/Welcome';
import AccountImport from './LandingPages/Welcome/AccountImport';
import Google from './LandingPages/Welcome/AccountImport/Google';
import Register from './LandingPages/Welcome/Register';
import Sync from './LandingPages/Welcome/Sync';

import './MainRoute.css';
import './Landing.css';

const LogPageView = () => {
return null;
};

export const MainRoute: React.FC = () => {
export const Landing: React.FC = () => {
return (
<div style={{ display: 'contents' }}>
<Route path="/" component={LogPageView} />
Expand All @@ -27,10 +26,9 @@ export const MainRoute: React.FC = () => {
<Route exact path="/welcome/accountimport" component={AccountImport} />
<Route exact path="/welcome/sync" component={Sync} />
<Route exact path="/forgot" component={Forgot} />
<Route exact path="/recoverpage" component={Recover} />
<Route exact path="/resetpage" component={Reset} />
<Route exact path="/forgot/recover" component={Recover} />
<Route exact path="/forgot/reset" component={Reset} />
<Route exact path="/welcome/accountimport/google" component={Google} />
<Route exact path="/recover" component={RecoverRegister} />
</Switch>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/LandingPages/Forgot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Forgot = () => {
<Button
variant="contained"
component={Link}
to="/resetpage"
to="/forgot/reset"
size="large"
sx={{
display: 'flex',
Expand Down Expand Up @@ -118,7 +118,7 @@ const Forgot = () => {
<Button
variant="contained"
component={Link}
to="/recoverpage"
to="/forgot/recover"
size="large"
sx={{
display: 'flex',
Expand Down
198 changes: 0 additions & 198 deletions src/ui/views/LandingPages/RecoverRegister/RecoveryPhrase.tsx

This file was deleted.

Loading

0 comments on commit 31313aa

Please sign in to comment.