coronasafe/care_fe

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

Summary

Maintainability
B
6 hrs
Test Coverage

Showing 2 of 2 total issues

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

<SheetContent
className="w-full sm:max-w-2xl overflow-y-auto"
data-cy="add-user-form"
>
<SheetHeader>
Severity: Major
Found in src/pages/Organization/components/AddUserSheet.tsx and 1 other location - About 4 hrs to fix
src/pages/Organization/components/EditUserSheet.tsx on lines 31..48

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

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