Skip to content

Commit

Permalink
revert: PAT UI (#1950)
Browse files Browse the repository at this point in the history
* fix

* fix
  • Loading branch information
RiXelanya authored Mar 19, 2024
1 parent 3141cf6 commit 6386e19
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 361 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"styled-components": "^5.3.5",
"ua-parser-js": "^1.0.33",
"unique-names-generator": "^4.7.1",
"uuid": "^9.0.1",
"validator": "^13.7.0",
"yarn-deduplicate": "^5.0.0"
},
Expand Down
7 changes: 0 additions & 7 deletions src/components/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import LoginByEmail from './render/Email/LoginByEmail';
import { Options } from './render/Options';
import { Profile } from './render/Profile';
import SigninMethod from './render/SignInMethod/SigninMethod';
import LoginByToken from './render/Token/LoginByToken';

import { COOKIE_INSTANCE_URL } from 'components/SelectServer';
import { MyriadFullIcon } from 'components/atoms/Icons';
Expand Down Expand Up @@ -346,12 +345,6 @@ export const Login: React.FC<LoginProps> = props => {
element={<LoginByEmail onNext={checkEmailRegistered} />}
/>

<Route
index={false}
path="/token"
element={<LoginByToken onNext={checkEmailRegistered} />}
/>

<Route
index={false}
path="/createAccounts"
Expand Down
13 changes: 1 addition & 12 deletions src/components/Login/render/SignInMethod/SigninMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export default function SigninMethod({
const styles = useStyles(detect.isMobile())();

const handleSelected = ({ method }: { method: string }) => {
if (method === 'token') {
navigate('/token');
} else if (method === 'web2') {
if (method === 'web2') {
navigate('/email');
} else {
navigate('/options');
Expand Down Expand Up @@ -89,15 +87,6 @@ export default function SigninMethod({
disabled={disableSignIn}
tooltip={i18n.t('Sign_In.Email.tooltip')}
/>
<div className={styles.textOr}>or</div>
<CardSign
title={i18n.t('Sign_In.Token.title')}
desc={i18n.t('Sign_In.Token.desc')}
image={<LoginWeb2 />}
onClick={() => handleSelected({ method: 'token' })}
disabled={disableSignIn}
tooltip={i18n.t('Sign_In.Email.tooltip')}
/>
</div>
</div>
</>
Expand Down
81 changes: 0 additions & 81 deletions src/components/Login/render/Token/LoginByToken.style.ts

This file was deleted.

254 changes: 0 additions & 254 deletions src/components/Login/render/Token/LoginByToken.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Login/render/Token/index.ts

This file was deleted.

Loading

0 comments on commit 6386e19

Please sign in to comment.