coronasafe/care_fe

View on GitHub
src/pages/Licenses/Licenses.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Function LicensesPage has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const LicensesPage = () => {
const { t } = useTranslation();
const [tab, setTab] = useState<"frontend" | "backend">("frontend");
 
const { data, isLoading } = useQuery<LicensesSbom>({
Severity: Minor
Found in src/pages/Licenses/Licenses.tsx - About 1 hr to fix

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

<TabsList>
<TabsTrigger value="frontend">{t("care_frontend")}</TabsTrigger>
<TabsTrigger value="backend">{t("care_backend")}</TabsTrigger>
</TabsList>
Severity: Major
Found in src/pages/Licenses/Licenses.tsx and 2 other locations - About 1 hr to fix
src/components/Questionnaire/QuestionnaireEditor.tsx on lines 1827..1830
src/pages/Patient/index.tsx on lines 201..204
Category
Status