uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Validation of JSX maximum depth JS-0415
Anti-pattern
Minor
a year agoa year old
Expected the depth of nested jsx elements to be <= 2, but found 5
174                ))}
175              </Row>
176              {yearlyCustom?.length > 0 && <h2>Custom Plans</h2>}
177              <Row gutter={[24, 32]}>178                {yearlyCustom?.map((item, key) => (179                  <Col span={8} key={key}>180                    <PlanCard plan={item} />181                  </Col>182                ))}183              </Row>184            </div>
185          </Tabs.TabPane>
186        </Tabs>
Expected the depth of nested jsx elements to be <= 2, but found 5
166          </Tabs.TabPane>
167          <Tabs.TabPane tab="Yearly" key="3">
168            <div className=" flex flex-col space-y-6 ">
169              <Row gutter={[24, 32]}>170                {yearlyPlans?.map((item, key) => (171                  <Col span={8} key={key}>172                    <PlanCard plan={item} />173                  </Col>174                ))}175              </Row>176              {yearlyCustom?.length > 0 && <h2>Custom Plans</h2>}
177              <Row gutter={[24, 32]}>
178                {yearlyCustom?.map((item, key) => (
Expected the depth of nested jsx elements to be <= 2, but found 5
115              </Row>
116              {allCustom?.length > 0 && <h2>Custom Plans</h2>}
117
118              <Row gutter={[24, 32]}>119                {allCustom?.map((item, key) => (120                  <Col span={8} key={key}>121                    <PlanCard plan={item} />122                  </Col>123                ))}124              </Row>125            </div>
126          </Tabs.TabPane>
127
Expected the depth of nested jsx elements to be <= 2, but found 5
106        <Tabs defaultActiveKey="0" size="large">
107          <Tabs.TabPane tab="All" key="0">
108            <div className=" flex flex-col space-y-6 ">
109              <Row gutter={[24, 32]}>110                {allPlans?.map((item, key) => (111                  <Col span={8} key={key}>112                    <PlanCard plan={item} />113                  </Col>114                ))}115              </Row>116              {allCustom?.length > 0 && <h2>Custom Plans</h2>}
117
118              <Row gutter={[24, 32]}>
Expected the depth of nested jsx elements to be <= 2, but found 5
127
128          <Tabs.TabPane tab="Monthly" key="1">
129            <div className=" flex flex-col space-y-6 ">
130              <Row gutter={[24, 32]}>131                {monthlyPlans?.map((item, key) => (132                  <Col span={8} key={key}>133                    <PlanCard plan={item} />134                  </Col>135                ))}136              </Row>137              {monthlyCustom?.length > 0 && <h2>Custom Plans</h2>}
138
139              <Row gutter={[24, 32]}>