Skip to content

Commit

Permalink
imports fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitindenis1 committed Aug 27, 2023
1 parent 628d9cc commit 08a1d6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
12 changes: 2 additions & 10 deletions packages/dapp-example/src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ import { eqIgnoreCase } from "@defi.org/web3-candies";
import { BsFillSunFill, BsFillMoonFill } from "react-icons/bs";
import { dapps } from "./config";
import { Status } from "./Status";
import { useBalance, useDebounce, useDisconnectWallet, useNetwork, useSelectedDapp, useTheme } from "./hooks";
import { useBalance, useDebounce, useDisconnectWallet, useSelectedDapp, useTheme } from "./hooks";
import { FixedSizeList as List } from "react-window";
import AutoSizer from "react-virtualized-auto-sizer";
import { TokenData } from "@orbs-network/twap";
import { SelectorOption, TokenListItem } from "./types";
import _ from "lodash";
import { useNavigate } from "react-router-dom";
import { network } from "@defi.org/web3-candies";
import { useFormatNumber } from "@orbs-network/twap-ui/dist/hooks";

const FAVICON = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/64.png";

Expand Down Expand Up @@ -209,7 +208,7 @@ const Row = (props: any) => {
const item: TokenListItem = data.tokens[index];
const { balance, isLoading } = useBalance(item.token);

const formattedValue = useFormatNumber({ value: balance, decimalScale: 6 });
const formattedValue = hooks.useFormatNumber({ value: balance, decimalScale: 6 });

if (!item) return null;
return (
Expand Down Expand Up @@ -276,19 +275,12 @@ export const TokensList = ({ tokens = [], onClick }: TokensListProps) => {
);
};

interface UIOption {
title: string;
component?: ReactNode;
}

export const UISelector = ({
options,
className = "",
select,
limit,
selected,
}: {
options?: UIOption[];
className?: string;
select?: (value: SelectorOption) => void;
limit?: boolean;
Expand Down
3 changes: 1 addition & 2 deletions packages/pangolin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import React from "react";
import { ThemeProvider, createTheme } from "@mui/material/styles";
import { ThemeProvider as Emotion10ThemeProvider } from "@emotion/react";
import { AiOutlineHistory } from "react-icons/ai";
import { useFormatNumber } from "@orbs-network/twap-ui/dist/hooks";
import { TokenData, Configs } from "@orbs-network/twap";
import Web3 from "web3";
import { configureStyles } from "./styles";
Expand Down Expand Up @@ -278,7 +277,7 @@ const TokenPanel = ({ isSrcToken }: { isSrcToken?: boolean }) => {
const [tokenListOpen, setTokenListOpen] = useState(false);
const translations = useTwapContext().translations;
const marketPrice = hooks.useMarketPrice().marketPrice;
const formattedMarketPrice = useFormatNumber({ value: marketPrice });
const formattedMarketPrice = hooks.useFormatNumber({ value: marketPrice });

const onClose = useCallback(() => {
setTokenListOpen(false);
Expand Down
4 changes: 2 additions & 2 deletions packages/pangolin/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface PangolinStyles extends StylesConfig {
}

export const StyledOrdersContainer = styled(Components.Base.SwipeContainer)({
zIndex: 99
zIndex: 99,
});

const parseTheme = (theme: any): PangolinStyles => {
Expand Down Expand Up @@ -401,7 +401,7 @@ export const configureStyles = (theme: any) => {
color: `black!important`,
fontWeight: 500,
minHeight: "unset",
border:'unset'
border: "unset",
},
".twap-button-disabled": {
background: "rgb(229, 229, 229)",
Expand Down

0 comments on commit 08a1d6d

Please sign in to comment.