mobile-app/app/screens/AppNavigator/screens/Auctions/components/BatchCard.tsx
File BatchCard.tsx
has 305 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import * as React from "react";
import { memo, useMemo, useState } from "react";
import { Text, View, LayoutChangeEvent } from "react-native";
import {
ThemedText,
Function BatchCard
has 150 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
export function BatchCard(props: BatchCardProps): JSX.Element {
const navigation = useNavigation<NavigationProp<AuctionsParamList>>();
const { address } = useWalletContext();
const { batch, testID, vault, collateralTokenSymbols } = props;
const [progressBarHeight, setProgressBarHeight] = useState<number>(0);