Skip to content

Commit

Permalink
Revert "fix: ui bugs" (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv authored Jun 6, 2024
1 parent 138fa61 commit d93131f
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 63 deletions.
2 changes: 1 addition & 1 deletion _raw/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@
"addKeyring404": "failed to addKeyring, keyring is undefined",
"emptyAccount": "the current account is empty",
"generateCacheAliasNames": "[GenerateCacheAliasNames]: need at least one address",
"invalidPrivateKey": "The private key is invalid",
"invalidPrivateKey": "the private key is invalid",
"invalidJson": "the input file is invalid",
"invalidMnemonic": "The seed phrase is invalid, please check!",
"notFoundKeyringByAddress": "Can't find keyring by address",
Expand Down
2 changes: 1 addition & 1 deletion src/constant/default-support-chains.json

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/ui/component/AccountSearchInput/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,4 @@
font-size: 13px;
font-weight: 500;
padding-bottom: 2px;
}
.account-search-input-wrapper {
.ant-input {
&:focus {
border: 1px solid var(--r-blue-default, #7084ff);
}
}
}
1 change: 0 additions & 1 deletion src/ui/component/AuthenticationModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import React, {
import { useTranslation } from 'react-i18next';
import { Popup, Checkbox, Field } from 'ui/component';
import { WrappedComponentProps, wrapModalPromise } from '../Modal/WrapPromise';
import './style.less';

interface AuthenticationModalProps extends WrappedComponentProps {
validationHandler?(password: string): Promise<void>;
Expand Down
10 changes: 0 additions & 10 deletions src/ui/component/AuthenticationModal/style.less

This file was deleted.

2 changes: 1 addition & 1 deletion src/ui/component/Popup/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
border-radius: 0;
&::placeholder {
color: var(--r-neutral-foot, #6a7587);
}
}
}
}
.popup-footer {
Expand Down
5 changes: 4 additions & 1 deletion src/ui/component/TokenSelector/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
width: 100%;
padding: 0 16px;
margin: 0 auto @token-selector-px;
.ant-input-affix-wrapper::before {
height: 16px;
}
.ant-input-affix-wrapper-lg {
padding: 9.25px;
padding: 12px;
border-radius: 6px;
// border: 1px solid @color-border;
// background-color: @color-bg;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/AddressBackup/Mnemonics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ const AddressBackup = () => {
{t('page.backupSeedPhrase.copySeedPhrase')}
</div>
</div>
<div className="footer pb-[20px]">
<div className="footer pb-[24px]">
<Button
type="primary"
className="w-full"
size="large"
className="w-[200px]"
onClick={() => history.goBack()}
>
{t('global.Done')}
Expand Down
8 changes: 2 additions & 6 deletions src/ui/views/AddressBackup/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
overflow: auto;

header {
background-color: var(--r-blue-default, #7084ff);
background: linear-gradient(111.24deg, #8babff 9.66%, #8094ff 85.59%);
text-align: center;
padding: 18px 20px;
font-weight: 500;
Expand Down Expand Up @@ -119,11 +119,7 @@
}

.footer {
width: 100%;
padding: 20px;
background-color: #FFF;
text-align: center;
position: fixed;
left: 0; bottom: 0;
padding-bottom: 32px;
}
}
2 changes: 1 addition & 1 deletion src/ui/views/CustomRPC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Footer = styled.div`
height: 76px;
border-top: 0.5px solid var(--r-neutral-line, rgba(255, 255, 255, 0.1));
background: var(--r-neutral-card-1, rgba(255, 255, 255, 0.06));
padding: 20px;
padding: 18px 20px;
display: flex;
justify-content: center;
`;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/CustomTestnet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Footer = styled.div`
height: 76px;
border-top: 0.5px solid var(--r-neutral-line, rgba(255, 255, 255, 0.1));
background: var(--r-neutral-bg1, rgba(255, 255, 255, 0.06));
padding: 20px;
padding: 18px 20px;
display: flex;
justify-content: center;
`;
Expand Down
3 changes: 0 additions & 3 deletions src/ui/views/ImportCoboArgus/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export const AddressInput: React.FC<Props> = ({
'bg-r-neutral-card-1',
{
'border-rabby-neutral-line': !error,
},
'focus-within: border border-[#7084ff]',
{
'border-red': error,
}
)}
Expand Down
10 changes: 8 additions & 2 deletions src/ui/views/ImportCoboArgus/ChainItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// import { RcIconChecked, RcIconNotChecked } from '@/ui/assets';
import RcIconChecked from './icons/checked.svg';
import RcIconUnchecked from './icons/unchecked.svg';
import ThemeIcon from '@/ui/component/ThemeMode/ThemeIcon';
import { Chain } from '@debank/common';
import { Checkbox } from 'ui/component';
import clsx from 'clsx';
import React from 'react';

Expand Down Expand Up @@ -33,7 +35,11 @@ export const ChainItem: React.FC<Props> = ({ chain, checked, onChecked }) => {
</span>
</div>
<div>
<Checkbox width="20px" height="20px" checked={checked} />
<ThemeIcon
className="w-20 h-20"
src={checked ? RcIconChecked : RcIconUnchecked}
// alt="checkbox"
/>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/ImportCoboArgus/ImportCoboArgus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const ImportCoboArgus = () => {
</div>
<footer
className={clsx(
'flex p-[20px]',
'flex py-[18px]',
'absolute bottom-0 left-0 right-0',
'border-t border-t-r-neutral-line',
'bg-r-neutral-bg-1'
Expand All @@ -145,7 +145,7 @@ export const ImportCoboArgus = () => {
(step === 'select-chain' && !selectedChain) ||
(step === 'add-address' && !inputAddress)
}
className="w-full h-[44px] m-auto"
className="w-[200px] h-[44px] m-auto"
type="primary"
onClick={hasImportError ? handleClose : handleNext}
loading={isLoading}
Expand Down
4 changes: 4 additions & 0 deletions src/ui/views/ImportCoboArgus/icons/checked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/ui/views/ImportCoboArgus/icons/unchecked.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ui/views/ImportGnosisAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const ImportGnosisAddress = () => {
<Button
type="primary"
size="large"
className="w-full h-[42px]"
className="w-[152px] h-[42px]"
disabled={loading || !!errorMessage || !chainList?.length}
onClick={() =>
handleNext(
Expand Down
7 changes: 0 additions & 7 deletions src/ui/views/ImportGnosisAddress/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
border: 1px solid #fff;
border-radius: 100%;
}
.rabby-container {
.ant-input {
&:focus {
border-color: var(--r-blue-default, #7084ff);
}
}
}

.ant-form-item-explain {
display: none !important;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/PreferMetamaskDapps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const PreferMetamaskDapps = () => {
/>
)}
<footer className="footer">
<Button size="large" block type="primary" onClick={handleAdd}>
<Button type="primary" onClick={handleAdd}>
{t('page.preferMetamaskDapps.howToAdd')}
</Button>
</footer>
Expand Down
3 changes: 2 additions & 1 deletion src/ui/views/PreferMetamaskDapps/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
bottom: 0;
left: 0;
right: 0;
padding: 20px;
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
Expand All @@ -89,6 +89,7 @@
background: var(--r-neutral-card-1, rgba(255, 255, 255, 0.06));

.ant-btn {
width: 172px;
height: 44px;
font-weight: 500;
font-size: 15px;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/SendNFT/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.footer {
padding: 20px 0;
padding: 16px 0 20px;
margin-left: -20px;
margin-right: -20px;
width: 100vw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ const FormInputItem = styled(Form.Item)`
&.ant-form-item-has-error {
margin-bottom: 0;
}
.ant-input {
&:focus {
border-color: var(--r-blue-default, #7084ff);
}
}
`;

function ModalConfirmAllowTransfer({
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/SendToken/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
}

.footer {
padding: 20px 0;
padding: 16px 0 20px;
margin-left: -20px;
margin-right: -20px;
width: 100vw;
Expand Down
4 changes: 1 addition & 3 deletions src/ui/views/Swap/Component/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ const StyledInput = styled(Input)`
}
&.ant-input-affix-wrapper,
&:focus,
&:active {
border: 1px solid transparent;
}
&:focus {
border: 1px solid #7084ff;
}
&:hover {
border-color: var(--r-blue-default, #7084ff) !important;
box-shadow: none;
Expand Down
18 changes: 14 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8263,10 +8263,20 @@ camelize@^1.0.0:
resolved "https://registry.npmmirror.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
integrity sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==

caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001313, caniuse-lite@^1.0.30001541, caniuse-lite@^1.0.30001587:
version "1.0.30001627"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001627.tgz"
integrity sha512-4zgNiB8nTyV/tHhwZrFs88ryjls/lHiqFhrxCW4qSTeuRByBVnPYpDInchOIySWknznucaf31Z4KYqjfbrecVw==
caniuse-lite@^1.0.30001196, caniuse-lite@^1.0.30001313:
version "1.0.30001313"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001313.tgz#a380b079db91621e1b7120895874e2fd62ed2e2f"
integrity sha512-rI1UN0koZUiKINjysQDuRi2VeSCce3bYJNmDcj3PIKREiAmjakugBul1QSkg/fPrlULYl6oWfGg3PbgOSY9X4Q==

caniuse-lite@^1.0.30001541:
version "1.0.30001559"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz#95a982440d3d314c471db68d02664fb7536c5a30"
integrity sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA==

caniuse-lite@^1.0.30001587:
version "1.0.30001609"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001609.tgz#fc34fad75c0c6d6d6303bdbceec2da8f203dabd6"
integrity sha512-JFPQs34lHKx1B5t1EpQpWH4c+29zIyn/haGsbpfq3suuV9v56enjFt23zqijxGTMwy1p/4H2tjnQMY+p1WoAyA==

case@^1.6.3:
version "1.6.3"
Expand Down

0 comments on commit d93131f

Please sign in to comment.