Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitindenis1 committed Aug 27, 2023
1 parent 0cf6361 commit 71297eb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 51 deletions.
1 change: 0 additions & 1 deletion packages/lib/src/components/base/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Icon from "./Icon";
import { StyledColumnFlex, StyledRowFlex, StyledText } from "../../styles";
import { Typography } from "@mui/material";
import { useTwapContext } from "../../context";
import { IconType } from "react-icons";

interface Props {
children: string | number | ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import BN from "bignumber.js";
import { InitLibProps, OrdersData, OrderUI, State } from "./types";
import _ from "lodash";
import { analytics } from "./analytics";
import { eqIgnoreCase, setWeb3Instance, switchMetaMaskNetwork, zeroAddress, estimateGasPrice, getPastEvents, findBlock, block, web3 } from "@defi.org/web3-candies";
import { eqIgnoreCase, setWeb3Instance, switchMetaMaskNetwork, zeroAddress, estimateGasPrice, getPastEvents, findBlock, block } from "@defi.org/web3-candies";
import { amountUi, getTokenFromTokensList, parseOrderUi, useTwapStore } from "./store";
import { REFETCH_BALANCE, REFETCH_GAS_PRICE, REFETCH_ORDER_HISTORY, REFETCH_USD, STALE_ALLOWANCE } from "./consts";
import { QueryKeys } from "./enums";
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/orders/Order/OrderPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ interface OrderTokenDisplayProps {
isLoading?: boolean;
isMain?: boolean;
}
export const OrderTokenDisplay = ({ token, amount, prefix = "", className = "", usdValue, alighLeft, usdPrefix, icon, isLoading, isMain }: OrderTokenDisplayProps) => {
export const OrderTokenDisplay = ({ token, amount, prefix = "", className = "", usdValue, alighLeft, usdPrefix, icon, isLoading }: OrderTokenDisplayProps) => {
const tokenAmount = useFormatNumber({ value: amount });
const tokenAmountTooltip = useFormatNumber({ value: amount, decimalScale: 18 });

Expand Down
94 changes: 46 additions & 48 deletions packages/spookyswap/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,61 +380,59 @@ export const StyledOrdersPanel = styled(OrdersPanel)(({ theme }) => {
};
});

export const StyledOrderSummaryModal = styled(Components.OrderSummaryModalContainer)(({ theme }) => {
return {
".twap-card": {
paddingBottom: 8,
},
background: "unset",
fontFamily: "Red Hat Display",
".twap-orders-summary-token-display-amount": {
fontSize: 17,
},
"& *": {
"&::-webkit-scrollbar": {
display: "none",
},
export const StyledOrderSummaryModal = styled(Components.OrderSummaryModalContainer)({
".twap-card": {
paddingBottom: 8,
},
background: "unset",
fontFamily: "Red Hat Display",
".twap-orders-summary-token-display-amount": {
fontSize: 17,
},
"& *": {
"&::-webkit-scrollbar": {
display: "none",
},
"& .MuiBackdrop-root": {
background: "rgba(18, 17, 34, 0.55)",
},
"& .MuiBackdrop-root": {
background: "rgba(18, 17, 34, 0.55)",
},
".twap-disclaimer-text": {
"*": {
fontSize: "14px!important",
},
".twap-disclaimer-text": {
"*": {
fontSize: "14px!important",
},
".twap-disclaimer-switch": {
fontSize: 14,
},
".twap-order-summary-output-address": {
fontSize: 14,
},
".twap-order-summary-details": {
".twap-order-summary-details-item": {
p: {
fontSize: 14,
},
},
".twap-disclaimer-switch": {
fontSize: 14,
},
".twap-modal-content": {
paddingTop: "50!important",
paddingBottom: "50!important",
"& a": {
fontWeight: 500,
textDecoration: "underline",
},
".twap-order-summary-output-address": {
fontSize: 14,
"& .MuiIconButton-root": {
color: "white",
},
".twap-order-summary-details": {
".twap-order-summary-details-item": {
p: {
fontSize: 14,
},
},
},
".twap-modal-content": {
paddingTop: "50!important",
paddingBottom: "50!important",
"& a": {
fontWeight: 500,
textDecoration: "underline",
},
"& .MuiIconButton-root": {
color: "white",
},
"& *": {
fontFamily: "inherit",
},
},
".twap-button": {
marginLeft: "auto",
marginRight: "auto",
"& *": {
fontFamily: "inherit",
},
};
},
".twap-button": {
marginLeft: "auto",
marginRight: "auto",
},
});

export const configureStyles = (theme: Theme) => {
Expand Down

0 comments on commit 71297eb

Please sign in to comment.