Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jan 17, 2024
1 parent 4c48b57 commit c52bae3
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.120",
"version": "3.0.121",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
6 changes: 3 additions & 3 deletions src/components/AddressLike.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {useEnsName} from 'wagmi';
import {cl} from '@builtbymom/web3/utils/cl.js';
import {cl} from '@builtbymom/web3/utils/cl';

import {copyToClipboard} from '../utils/helpers.js';
import {copyToClipboard} from '../utils/helpers';

import type {ReactElement} from 'react';
import type {TAddress} from '@builtbymom/web3/types/address.js';
import type {TAddress} from '@builtbymom/web3/types/address';

export function AddressLike({address}: {address: TAddress}): ReactElement {
const {data: ensHandle, isSuccess} = useEnsName({address, chainId: 1});
Expand Down
4 changes: 2 additions & 2 deletions src/components/AmountInput.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Renderable} from './Renderable.js';
import {Renderable} from './Renderable';

import type {ReactElement} from 'react';
import type {TNormalizedBN} from '@builtbymom/web3/types/mixed.js';
import type {TNormalizedBN} from '@builtbymom/web3/types/mixed';

type TAmountInputProps = {
amount: TNormalizedBN;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {forwardRef} from 'react';

import {IconLoader} from '../icons/IconLoader.js';
import {IconLoader} from '../icons/IconLoader';

import type {ForwardedRef, ReactElement, ReactNode} from 'react';

Expand Down
6 changes: 3 additions & 3 deletions src/components/Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {Fragment, useState} from 'react';
import {cl} from '@builtbymom/web3/utils/cl.js';
import {cl} from '@builtbymom/web3/utils/cl';
import {Combobox, Transition} from '@headlessui/react';
import {useThrottledState} from '@react-hookz/web';

import {IconChevron} from '../icons/IconChevron.js';
import {ImageWithFallback} from './ImageWithFallback.js';
import {IconChevron} from '../icons/IconChevron';
import {ImageWithFallback} from './ImageWithFallback';

import type {ReactElement} from 'react';

Expand Down
14 changes: 7 additions & 7 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import {cloneElement, Fragment, useEffect, useMemo, useState} from 'react';
import {useConnect, usePublicClient} from 'wagmi';
import {useWeb3} from '@builtbymom/web3/contexts/useWeb3';
import {toSafeChainID} from '@builtbymom/web3/hooks/useChainID.js';
import {assert} from '@builtbymom/web3/utils/assert.js';
import {cl} from '@builtbymom/web3/utils/cl.js';
import {truncateHex} from '@builtbymom/web3/utils/tools.address.js';
import {toSafeChainID} from '@builtbymom/web3/hooks/useChainID';
import {assert} from '@builtbymom/web3/utils';
import {cl} from '@builtbymom/web3/utils/cl';
import {truncateHex} from '@builtbymom/web3/utils/tools.address';
import {Listbox, Transition} from '@headlessui/react';
import {useAccountModal, useChainModal, useConnectModal} from '@rainbow-me/rainbowkit';
import {useIsMounted} from '@react-hookz/web';

import {IconChevronBottom} from '../icons/IconChevronBottom.js';
import {IconWallet} from '../icons/IconWallet.js';
import {Button} from './Button.js';
import {IconChevronBottom} from '../icons/IconChevronBottom';
import {IconWallet} from '../icons/IconWallet';
import {Button} from './Button';

import type {AnchorHTMLAttributes, DetailedHTMLProps, ReactElement} from 'react';
import type {Chain} from 'wagmi';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ImageWithFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Image} from 'next/dist/client/image-component';
import {cl} from '@builtbymom/web3/utils';
import {useUpdateEffect} from '@react-hookz/web';

import type {ImageProps} from 'next/image.js';
import type {ImageProps} from 'next/image';
import type {CSSProperties, ReactElement} from 'react';

type TImageWithFallback = ImageProps & {
Expand Down
10 changes: 5 additions & 5 deletions src/components/ModalMobileMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React, {cloneElement, Fragment, useEffect, useMemo, useRef, useState} from 'react';
import {useConnect, useNetwork} from 'wagmi';
import {useWeb3} from '@builtbymom/web3/contexts/useWeb3';
import {assert} from '@builtbymom/web3/utils/assert.js';
import {truncateHex} from '@builtbymom/web3/utils/tools.address.js';
import {assert} from '@builtbymom/web3/utils';
import {truncateHex} from '@builtbymom/web3/utils/tools.address';
import {Dialog, Transition} from '@headlessui/react';

import {useInjectedWallet} from '../hooks/useInjectedWallet.js';
import {useInjectedWallet} from '../hooks/useInjectedWallet';

import type {ReactElement, ReactNode} from 'react';
import type {Chain} from 'wagmi';
import type {TNetwork} from './Header.js';
import type {TModal} from './Modal.js';
import type {TNetwork} from './Header';
import type {TModal} from './Modal';

type TModalMobileMenu = {
isOpen: boolean;
Expand Down
8 changes: 4 additions & 4 deletions src/components/yToast.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {toast as toastMaster, useToasterStore} from 'react-hot-toast';

import {IconAlertCritical} from '../icons/IconAlertCritical.js';
import {IconAlertError} from '../icons/IconAlertError.js';
import {IconAlertWarning} from '../icons/IconAlertWarning.js';
import {IconCheckmark} from '../icons/IconCheckmark.js';
import {IconAlertCritical} from '../icons/IconAlertCritical';
import {IconAlertError} from '../icons/IconAlertError';
import {IconAlertWarning} from '../icons/IconAlertWarning';
import {IconCheckmark} from '../icons/IconCheckmark';

import type {ReactElement} from 'react';
import type {ToastOptions} from 'react-hot-toast';
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useAddToken.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {yToast} from '../components/yToast.js';
import {useDismissToasts} from './useDismissToasts.js';
import {yToast} from '../components/yToast';
import {useDismissToasts} from './useDismissToasts';

declare let window: unknown;

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDismissToasts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {yToast} from '../components/yToast.js';
import {yToast} from '../components/yToast';

type TUseDismissToasts = {
dismissAllToasts: () => void;
Expand Down
14 changes: 7 additions & 7 deletions src/hooks/useInjectedWallet.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {useMemo} from 'react';

import {IconWalletCoinbase} from '../icons/IconWalletCoinbase.js';
import {IconWalletFrame} from '../icons/IconWalletFrame.js';
import {IconWalletLedger} from '../icons/IconWalletLedger.js';
import {IconWalletMetamask} from '../icons/IconWalletMetamask.js';
import {IconWalletOKX} from '../icons/IconWalletOKX.js';
import {IconWalletPhantom} from '../icons/IconWalletPhantom.js';
import {IconWalletTrustWallet} from '../icons/IconWalletTrustWallet.js';
import {IconWalletCoinbase} from '../icons/IconWalletCoinbase';
import {IconWalletFrame} from '../icons/IconWalletFrame';
import {IconWalletLedger} from '../icons/IconWalletLedger';
import {IconWalletMetamask} from '../icons/IconWalletMetamask';
import {IconWalletOKX} from '../icons/IconWalletOKX';
import {IconWalletPhantom} from '../icons/IconWalletPhantom';
import {IconWalletTrustWallet} from '../icons/IconWalletTrustWallet';

import type {ReactElement} from 'react';

Expand Down
4 changes: 2 additions & 2 deletions src/utils/format.time.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dayjs, {extend} from 'dayjs';
import dayjsDuration from 'dayjs/plugin/duration.js';
import relativeTime from 'dayjs/plugin/relativeTime.js';
import dayjsDuration from 'dayjs/plugin/duration';
import relativeTime from 'dayjs/plugin/relativeTime';

extend(relativeTime);
extend(dayjsDuration);
Expand Down
4 changes: 2 additions & 2 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {toNormalizedBN} from '@builtbymom/web3/utils';

import {yToast} from '../components/yToast.js';
import {yToast} from '../components/yToast';

import type {TSortDirection} from '@builtbymom/web3/types/mixed.js';
import type {TSortDirection} from '@builtbymom/web3/types/mixed';
/* 🔵 - Yearn Finance ******************************************************
** Yearn Meta uses some markdown for some rich content. Instead of using
** a md parser and add some heavy dependencies, just use regex to replace
Expand Down

0 comments on commit c52bae3

Please sign in to comment.