coronasafe/care_fe

View on GitHub
src/pages/Organization/components/AddFacilitySheet.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

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

<SheetTrigger asChild>
<Button variant="outline" data-cy="add-facility-button">
<CareIcon icon="l-plus" className="mr-2 size-4" />
{t("add_facility")}
</Button>
Severity: Major
Found in src/pages/Organization/components/AddFacilitySheet.tsx and 2 other locations - About 1 hr to fix
src/components/Patient/PatientDetailsTab/PatientUsers.tsx on lines 114..119
src/pages/Organization/components/AddUserSheet.tsx on lines 35..40
Category
Status