mobile-app/app/components/OceanInterface/OceanInterface.tsx
Function OceanInterface
has 209 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
export function OceanInterface(): JSX.Element | null {
const logger = useLogger();
const dispatch = useAppDispatch();
const client = useWhaleApiClient();
const { wallet, address } = useWalletContext();
File OceanInterface.tsx
has 316 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
getMetaScanTxUrl,
useDeFiScanContext,
} from "@shared-contexts/DeFiScanContext";
import { useWalletContext } from "@shared-contexts/WalletContext";
Consider simplifying this complex logical expression. Open
Open
if (
tx?.broadcasted && // only call tx when tx is done
calledTx !== tx?.tx.txId && // to ensure that api is only called once per tx
tx?.tx.txId !== undefined &&
network === EnvironmentNetwork.MainNet &&