LucidSamuel / Defi-Portfolio

Validation of JSX maximum depth JS-0415
Anti-pattern
Minor
2 years ago2 years old
Expected the depth of nested jsx elements to be <= 2, but found 3
32            <div className="addr-search">
33              <h1 className="search-text">Search an address</h1>
34              <form>
35                <input type='text'36                placeholder='search'37                className='addr-input' onChange={handleChange} />38              </form>
39            </div>
40            <h1>DEX Trade History</h1>
Expected the depth of nested jsx elements to be <= 2, but found 3
21                    <p className='tx-swapped-price'>Swapped Token Price: {quote_price.toLocaleString()}</p>
22                    <p className='tx-amt-usd'>Swapped Token Cost: ${amt_usd.toLocaleString()}</p>
23                    <p className='tx-swapped-symbol'>Swapped Token Symbol: {swappedSymbol}</p>
24                    <p className='tx-amm'>AMM: {amm}</p>25                </div>
26            </div>
27        </div>
Expected the depth of nested jsx elements to be <= 2, but found 3
20                    <p className='tx-amt-in'>Swapped Token Quantity: {amt_in.toLocaleString()}</p>
21                    <p className='tx-swapped-price'>Swapped Token Price: {quote_price.toLocaleString()}</p>
22                    <p className='tx-amt-usd'>Swapped Token Cost: ${amt_usd.toLocaleString()}</p>
23                    <p className='tx-swapped-symbol'>Swapped Token Symbol: {swappedSymbol}</p>24                    <p className='tx-amm'>AMM: {amm}</p>
25                </div>
26            </div>
Expected the depth of nested jsx elements to be <= 2, but found 3
19                    <p className='tx-base-price'>Base Token Price: ${base_price.toLocaleString()}</p>
20                    <p className='tx-amt-in'>Swapped Token Quantity: {amt_in.toLocaleString()}</p>
21                    <p className='tx-swapped-price'>Swapped Token Price: {quote_price.toLocaleString()}</p>
22                    <p className='tx-amt-usd'>Swapped Token Cost: ${amt_usd.toLocaleString()}</p>23                    <p className='tx-swapped-symbol'>Swapped Token Symbol: {swappedSymbol}</p>
24                    <p className='tx-amm'>AMM: {amm}</p>
25                </div>
Expected the depth of nested jsx elements to be <= 2, but found 3
18                    <p className='tx-amt-out'>Base Token Quantity: {amt_out.toLocaleString()}</p>
19                    <p className='tx-base-price'>Base Token Price: ${base_price.toLocaleString()}</p>
20                    <p className='tx-amt-in'>Swapped Token Quantity: {amt_in.toLocaleString()}</p>
21                    <p className='tx-swapped-price'>Swapped Token Price: {quote_price.toLocaleString()}</p>22                    <p className='tx-amt-usd'>Swapped Token Cost: ${amt_usd.toLocaleString()}</p>
23                    <p className='tx-swapped-symbol'>Swapped Token Symbol: {swappedSymbol}</p>
24                    <p className='tx-amm'>AMM: {amm}</p>