Skip to content

Commit

Permalink
chore(dcellar-web-ui): sync dcellar the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl committed Sep 18, 2023
2 parents 93bd99f + 2cb3cdd commit 1a17733
Show file tree
Hide file tree
Showing 144 changed files with 4,639 additions and 2,174 deletions.
4 changes: 2 additions & 2 deletions apps/dcellar-web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"ahooks": "3.7.7",
"hash-wasm": "4.9.0",
"@babel/core": "^7.20.12",
"@bnb-chain/greenfield-js-sdk": "0.2.4-alpha.26",
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.22",
"@bnb-chain/greenfield-js-sdk": "0.2.5-alpha.9",
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.23",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@next/bundle-analyzer": "^13.1.6",
Expand Down
5 changes: 5 additions & 0 deletions apps/dcellar-web-ui/public/images/accounts/error_account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/dcellar-web-ui/public/images/accounts/gnfd_account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/dcellar-web-ui/src/base/theme/antd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ export const theme: ThemeConfig = {
colorText: '#1E2026',
colorTextHeading: '#76808F',
fontFamily: 'Inter, sans-serif',
colorError: '#EE3911',
colorErrorBorderHover: '#FC6E75',
},
components: {
Tooltip: {
zIndexPopup: 1600,
},
InputNumber: {
borderRadius: 2,
boxShadow: 'none',
colorBorder: '#E6E8EA',
fontSize: 14,
lineHeight: 1.214,
},
},
};
3 changes: 3 additions & 0 deletions apps/dcellar-web-ui/src/base/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export const theme = {
marginLeft: -24,
padding: '0 24px',
},
'.ui-drawer .ui-drawer-footer': {
marginTop: 16,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ButtonConfig: TButtonConfig = {
_disabled: {
bg: `#AEB4BC`,
color: 'readable.tertiary',
cursor: 'not-allowed',
_hover: {
bg: `#AEB4BC`,
},
Expand All @@ -32,6 +33,7 @@ export const ButtonConfig: TButtonConfig = {
_disabled: {
bg: `#AEB4BC`,
color: 'readable.tertiary',
cursor: 'not-allowed',
_hover: {
bg: `#AEB4BC`,
},
Expand All @@ -46,6 +48,7 @@ export const ButtonConfig: TButtonConfig = {
_disabled: {
bg: `#AEB4BC`,
color: 'readable.tertiary',
cursor: 'not-allowed',
_hover: {
bg: `#AEB4BC`,
},
Expand All @@ -64,8 +67,10 @@ export const ButtonConfig: TButtonConfig = {
bg: `#AEB4BC`,
color: 'readable.tertiary',
border: '1px solid transparent',
cursor: 'not-allowed',
_hover: {
bg: `#AEB4BC`,
color: 'readable.tertiary'
},
},
},
Expand Down
13 changes: 13 additions & 0 deletions apps/dcellar-web-ui/src/components/common/DCInputNumber/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { ConfigProvider, InputNumber, InputNumberProps } from 'antd';
import { memo } from 'react';
import { theme } from '@/base/theme/antd';

interface DCInputNumberProps extends InputNumberProps<number> {}

export const DCInputNumber = memo<DCInputNumberProps>(function DCInputNumber({ ...props }) {
return (
<ConfigProvider theme={theme}>
<InputNumber {...props} />
</ConfigProvider>
);
});
Loading

0 comments on commit 1a17733

Please sign in to comment.