mobile-app/app/screens/AppNavigator/screens/Loans/screens/EditCollateralScreen.tsx
File EditCollateralScreen.tsx
has 502 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { SymbolIcon } from "@components/SymbolIcon";
import {
ThemedIcon,
ThemedScrollView,
ThemedSectionTitle,
Function CollateralCard
has 111 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
function CollateralCard(props: CollateralCardProps): JSX.Element {
const { collateral, collateralItem, totalCollateralValue, vault } = props;
const canUseOperations = useLoanOperations(vault.state);
const prices = getCollateralPrice(
new BigNumber(collateral.amount),
Function VaultIdSection
has 108 lines of code (exceeds 100 allowed). Consider refactoring. Open
Open
function VaultIdSection(props: { vault: LoanVaultActive }): JSX.Element {
const { vault } = props;
const colRatio = new BigNumber(vault.informativeRatio);
const minColRatio = new BigNumber(vault.loanScheme.minColRatio);
const totalLoanAmount = new BigNumber(vault.loanValue);