Skip to content

Commit

Permalink
fix: no duplicate imports or unused exports
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Sep 30, 2024
1 parent 4ff91e2 commit 3897710
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 23 deletions.
10 changes: 1 addition & 9 deletions src/app/components/loading-spinner.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { Flex, FlexProps } from 'leather-styles/jsx';

import { Spinner } from '@leather.io/ui';

export function LoadingSpinner(props: { size?: string } & FlexProps) {
return (
<Flex alignItems="center" flexGrow={1} justifyContent="center" width="100%" {...props}>
<Spinner size={props.size} />
</Flex>
);
}
import { LoadingSpinner } from '@leather.io/ui';

export function FullPageLoadingSpinner(props: FlexProps) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Suspense } from 'react';

import { Box, Stack, StackProps } from 'leather-styles/jsx';

import { LoadingSpinner } from '@leather.io/ui';
import { Tabs } from '@leather.io/ui';
import { LoadingSpinner, Tabs } from '@leather.io/ui';

import { analytics } from '@shared/utils/analytics';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import {
useStacksRawTransaction,
useStxAvailableUnlockedBalance,
} from '@leather.io/query';
import { LoadingSpinner } from '@leather.io/ui';
import { Caption, Sheet, SheetHeader, Spinner } from '@leather.io/ui';
import { Caption, LoadingSpinner, Sheet, SheetHeader, Spinner } from '@leather.io/ui';
import { microStxToStx, stxToMicroStx } from '@leather.io/utils';

import { RouteUrls } from '@shared/route-urls';
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/home/components/home-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { useLocation, useNavigate } from 'react-router-dom';

import { Box, Stack } from 'leather-styles/jsx';

import { LoadingSpinner } from '@leather.io/ui';
import { Tabs } from '@leather.io/ui';
import { LoadingSpinner, Tabs } from '@leather.io/ui';

import { RouteUrls } from '@shared/route-urls';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { useState } from 'react';
import { Outlet, useNavigate } from 'react-router-dom';

import type { BtcFeeType } from '@leather.io/models';
import { LoadingSpinner } from '@leather.io/ui';
import { Sheet, SheetHeader } from '@leather.io/ui';
import { LoadingSpinner, Sheet, SheetHeader } from '@leather.io/ui';
import { createMoney } from '@leather.io/utils';

import { RouteUrls } from '@shared/route-urls';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { Box, Flex, Stack } from 'leather-styles/jsx';
import get from 'lodash.get';

import { useBitcoinBroadcastTransaction } from '@leather.io/query';
import { Button, Sheet, SheetHeader } from '@leather.io/ui';
import { InscriptionPreviewCard } from '@leather.io/ui';
import { Button, InscriptionPreviewCard, Sheet, SheetHeader } from '@leather.io/ui';

import { RouteUrls } from '@shared/route-urls';
import { analytics } from '@shared/utils/analytics';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import { Box, Flex, HStack, Stack } from 'leather-styles/jsx';
import get from 'lodash.get';

import type { Blockchain, Inscription } from '@leather.io/models';
import { CheckmarkIcon, CopyIcon, ExternalLinkIcon, Sheet, SheetHeader } from '@leather.io/ui';
import { InscriptionPreviewCard } from '@leather.io/ui';
import {
CheckmarkIcon,
CopyIcon,
ExternalLinkIcon,
InscriptionPreviewCard,
Sheet,
SheetHeader,
} from '@leather.io/ui';

import { RouteUrls } from '@shared/route-urls';
import { analytics } from '@shared/utils/analytics';
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/swap/swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Outlet, useParams } from 'react-router-dom';
import { SwapSelectors } from '@tests/selectors/swap.selectors';
import { useFormikContext } from 'formik';

import { LoadingSpinner } from '@leather.io/ui';
import { Button } from '@leather.io/ui';
import { Button, LoadingSpinner } from '@leather.io/ui';
import { isUndefined } from '@leather.io/utils';

import { Card } from '@app/components/layout';
Expand Down

0 comments on commit 3897710

Please sign in to comment.