Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy committed Mar 5, 2025
1 parent 410b54b commit aa14607
Show file tree
Hide file tree
Showing 56 changed files with 198 additions and 485 deletions.
5 changes: 3 additions & 2 deletions apps/evm/src/assets/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '@venusprotocol/ui/styles.css';
@import '@venusprotocol/ui/fonts/proximaNova';
@import '@venusprotocol/ui/theme';

@tailwind base;
@tailwind components;
Expand All @@ -16,7 +17,7 @@
}

body {
font-family: 'ProximaNova', sans-serif;
font-family: var(--font-proxima-nova), sans-serif;
background-color: theme('colors.background');
color: theme('colors.offWhite');
}
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/components/ApprovalSteps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Typography } from '@mui/material';

import { handleError } from 'libs/errors';

import { PrimaryButton } from '@venusprotocol/ui';
import { InfoIcon } from 'components/InfoIcon';
import { PrimaryButton } from '../Button';
import { useStyles } from './styles';

export interface ApprovalStepsProps {
Expand Down
119 changes: 0 additions & 119 deletions apps/evm/src/components/Button/index.stories.tsx

This file was deleted.

125 changes: 0 additions & 125 deletions apps/evm/src/components/Button/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion apps/evm/src/components/ButtonGroup/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsxImportSource @emotion/react */
import { TertiaryButton } from '../Button';
import { TertiaryButton } from '@venusprotocol/ui';
import { useStyles } from './styles';

export interface ButtonGroupProps {
Expand Down
3 changes: 1 addition & 2 deletions apps/evm/src/components/Notice/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { cn } from 'utilities';

import { TextButton } from '../Button';
import { Spinner, TextButton } from '@venusprotocol/ui';
import { Icon, type IconName } from '../Icon';
import { Spinner } from '../Spinner';
import type { NoticeProps, NoticeVariant } from './types';

export * from './types';
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Typography from '@mui/material/Typography';
import type { ReactElement } from 'react';

import { Button } from '../Button';
import { Button } from '@venusprotocol/ui';
import { Icon, type IconProps } from '../Icon';
import { useStyles } from './styles';
import { usePagination } from './usePagination';
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/components/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { forwardRef, useCallback, useMemo } from 'react';

import { Dropdown } from '../Dropdown';

import { Button } from 'components/Button';
import { Button } from '@venusprotocol/ui';
import { cn } from 'utilities';
import { renderLabel } from '../Dropdown/renderLabel';
import { Icon } from '../Icon';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useTranslation } from 'libs/translations';
import type { Token, TokenBalance } from 'types';
import { cn, convertMantissaToTokens } from 'utilities';

import { SenaryButton } from '../../Button';
import { SenaryButton } from '@venusprotocol/ui';
import { TextField } from '../../TextField';
import { useStyles as useParentStyles } from '../styles';
import { getTokenListItemTestId } from '../testIdGetters';
Expand Down
2 changes: 1 addition & 1 deletion apps/evm/src/components/SelectTokenTextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useState } from 'react';
import { TokenIconWithSymbol } from 'components/TokenIconWithSymbol';
import type { Token, TokenBalance } from 'types';

import { TertiaryButton } from '../Button';
import { TertiaryButton } from '@venusprotocol/ui';
import { Icon } from '../Icon';
import { TokenTextField, type TokenTextFieldProps } from '../TokenTextField';
import TokenList from './TokenList';
Expand Down
4 changes: 2 additions & 2 deletions apps/evm/src/components/SpendingLimit/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type BigNumber from 'bignumber.js';

import { Spinner } from '@venusprotocol/ui';
import { LabeledInlineContent } from 'components/LabeledInlineContent';
import { Spinner } from 'components/Spinner';
import useFormatTokensToReadableValue from 'hooks/useFormatTokensToReadableValue';
import { handleError } from 'libs/errors';
import { useTranslation } from 'libs/translations';
import type { Token } from 'types';

import { TextButton } from '@venusprotocol/ui';
import { InfoIcon } from 'components/InfoIcon';
import { TextButton } from '../Button';

export interface SpendingLimitProps {
token: Token;
Expand Down
12 changes: 0 additions & 12 deletions apps/evm/src/components/Spinner/index.stories.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions apps/evm/src/components/Spinner/index.tsx

This file was deleted.

Binary file removed apps/evm/src/components/Spinner/spinnerAnimation.gif
Binary file not shown.
5 changes: 0 additions & 5 deletions apps/evm/src/components/Spinner/testIds.ts

This file was deleted.

Loading

0 comments on commit aa14607

Please sign in to comment.