coronasafe/care_fe

View on GitHub
src/pages/Organization/OrganizationView.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

<div className="mt-1 flex flex-col justify-start space-y-2 md:flex-row md:justify-between md:space-y-0">
<EntityBadge
title={t("organizations")}
count={children?.count}
isFetching={isFetching}
Severity: Major
Found in src/pages/Organization/OrganizationView.tsx and 2 other locations - About 1 hr to fix
src/pages/Organization/OrganizationPatients.tsx on lines 105..112
src/pages/Organization/OrganizationUsers.tsx on lines 113..120

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<Card className="col-span-full">
<CardContent className="p-6 text-center text-gray-500">
{qParams.name
? t("no_organizations_found")
: t("no_sub_organizations_found")}
Severity: Major
Found in src/pages/Organization/OrganizationView.tsx and 1 other location - About 1 hr to fix
src/components/Medicine/MedicationAdministration/MedicineAdminDialog.tsx on lines 72..78
Category
Status