From 48aaf991a397f7f646c930ab5d85e0cd2e50b55c Mon Sep 17 00:00:00 2001 From: Felix Thape Date: Tue, 9 Apr 2024 14:52:43 +0200 Subject: [PATCH 1/3] feat: add properties text to OrganizationDetails --- .../components/layout/OrganizationDetails.tsx | 33 +++++++++++++++++-- tasks/components/layout/PatientDetails.tsx | 10 +++--- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/tasks/components/layout/OrganizationDetails.tsx b/tasks/components/layout/OrganizationDetails.tsx index a373bc1ff..b50b6aa70 100644 --- a/tasks/components/layout/OrganizationDetails.tsx +++ b/tasks/components/layout/OrganizationDetails.tsx @@ -5,6 +5,8 @@ import { useContext, useEffect, useState } from 'react' import { Button } from '@helpwave/common/components/Button' import { ConfirmDialog } from '@helpwave/common/components/modals/ConfirmDialog' import { Span } from '@helpwave/common/components/Span' +import { DescriptionWithAction } from '@helpwave/common/components/DescriptionWithAction' +import Link from 'next/link' import { emptyOrganizationForm, OrganizationForm, type OrganizationFormType } from '../OrganizationForm' import { OrganizationMemberList } from '../OrganizationMemberList' import { ColumnTitle } from '../ColumnTitle' @@ -21,6 +23,7 @@ import { import { useAuth } from '@/hooks/useAuth' import { useOrganization } from '@/hooks/useOrganization' import { ReSignInModal } from '@/components/modals/ReSignInModal' +import { usePropertyListQuery } from '@/mutations/property_mutations' type OrganizationDetailTranslation = { organizationDetail: string, @@ -29,7 +32,10 @@ type OrganizationDetailTranslation = { deleteConfirmText: string, deleteOrganization: string, create: string, - update: string + update: string, + properties: string, + propertiesDescription: string, + manageProperties: string } const defaultOrganizationDetailTranslations: Record = { @@ -40,7 +46,10 @@ const defaultOrganizationDetailTranslations: Record() const [organizationForm, setOrganizationForm] = useState(emptyOrganizationForm) @@ -199,6 +212,20 @@ export const OrganizationDetail = ({ invitations={isCreatingNewOrganization ? organizationInvites : undefined} organizationId={contextState.organizationId} /> + {propertyData && !isCreatingNewOrganization && ( + + + + + + )} + leadingIcon="label" + /> + )}
- - ) : ( - - )} + )}