Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRFelix committed Jan 21, 2025
1 parent 24415f7 commit 6524f0c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/mobile/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"node": "20.11.1"
},
"production": {
"node": "20.11.1"
"node": "20.11.1",
"env": {
"EXPO_PUBLIC_HISTORICAL_DATA_URL": "https://data.app.osmosis.zone",
"EXPO_PUBLIC_OSMOSIS_BE_BASE_URL": "http://192.168.6.194:3000"
}
}
}
}
3 changes: 1 addition & 2 deletions packages/web/components/place-limit-tool/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DEFAULT_VS_CURRENCY } from "@osmosis-labs/server";
import { QuoteDirection } from "@osmosis-labs/tx";
import { Dec, DecUtils, PricePretty } from "@osmosis-labs/unit";
import { isValidNumericalRawInput } from "@osmosis-labs/utils";
import { isValidNumericalRawInput, mulPrice } from "@osmosis-labs/utils";
import classNames from "classnames";
import { observer } from "mobx-react-lite";
import { parseAsString, parseAsStringLiteral, useQueryStates } from "nuqs";
Expand Down Expand Up @@ -40,7 +40,6 @@ import {
useWalletSelect,
} from "~/hooks";
import { MIN_ORDER_VALUE, usePlaceLimit } from "~/hooks/limit-orders";
import { mulPrice } from "~/hooks/queries/assets/use-coin-fiat-value";
import {
useAmountWithSlippage,
useDynamicSlippageConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/web/hooks/limit-orders/use-place-limit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
QuoteDirection,
} from "@osmosis-labs/tx";
import { CoinPretty, Dec, Int, PricePretty } from "@osmosis-labs/unit";
import { mulPrice } from "@osmosis-labs/utils";
import { useCallback, useEffect, useMemo, useState } from "react";
import { useAsync } from "react-use";

Expand All @@ -19,7 +20,6 @@ import { useOrderbook } from "~/hooks/limit-orders/use-orderbook";
import { onAdd1CTSession } from "~/hooks/mutations/one-click-trading";
import { onEnd1CTSession } from "~/hooks/mutations/one-click-trading/use-remove-one-click-trading-session";
import { use1CTSwapReviewMessages } from "~/hooks/one-click-trading";
import { mulPrice } from "~/hooks/queries/assets/use-coin-fiat-value";
import { usePrice } from "~/hooks/queries/assets/use-price";
import { useAmplitudeAnalytics } from "~/hooks/use-amplitude-analytics";
import { useEstimateTxFees } from "~/hooks/use-estimate-tx-fees";
Expand Down
9 changes: 5 additions & 4 deletions packages/web/modals/base.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from "classnames";
import React, { PropsWithChildren, ReactNode } from "react";
import React from "react";
import ReactModal, { setAppElement } from "react-modal";
import { useUnmount } from "react-use";

Expand All @@ -18,11 +18,12 @@ export interface ModalBaseProps {
onRequestBack?: () => void;
onAfterClose?: () => void;
backIcon?: SpriteIconId;
title?: string | ReactNode;
title?: string | React.ReactNode;
className?: string;
bodyOpenClassName?: string;
overlayClassName?: string;
hideCloseButton?: boolean;
children?: React.ReactNode;
}

export const ModalBase = ({
Expand All @@ -37,7 +38,7 @@ export const ModalBase = ({
overlayClassName,
hideCloseButton,
children,
}: PropsWithChildren<ModalBaseProps>) => {
}: ModalBaseProps) => {
const { isMobile } = useWindowSize();
const bodyOpenClassNames = classNames("overflow-hidden", bodyOpenClassName);
useUnmount(() => {
Expand Down Expand Up @@ -83,7 +84,7 @@ export const ModalBase = ({
)}
{!hideCloseButton && <ModalCloseButton onClick={onRequestClose} />}
</div>
{children}
<>{children}</>
</ReactModal>
);
};
Expand Down

0 comments on commit 6524f0c

Please sign in to comment.