coronasafe/care_fe

View on GitHub
src/pages/Facility/settings/organizations/FacilityOrganizationView.tsx

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 3 of 3 total issues

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

<div className="relative">
<CareIcon
icon="l-search"
className="absolute left-3 top-1/2 -translate-y-1/2 text-gray-500 size-4"
/>
src/pages/Facility/settings/organizations/FacilityOrganizationUsers.tsx on lines 81..94

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

{children?.results?.length ? (
children.results.map((org) => (
<OrganizationCard
key={org.id}
org={org}
src/pages/Facility/settings/locations/LocationView.tsx on lines 290..308

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

{children && children.count > resultsPerPage && (
<div className="flex justify-center">
<Pagination totalCount={children.count} />
</div>
)}
src/pages/Facility/settings/devices/DevicesList.tsx on lines 225..229

There are no issues that match your filters.

Category
Status