Skip to content

Commit

Permalink
fix: formatting and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
prwozny committed Oct 4, 2024
1 parent 2528f46 commit 06f69bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/types/pearl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ declare global {

type SurveyUnitCommunicationRequest = {
emitter: 'INTERVIEWER' | 'TOOL';
communicationTemplateId : string;
communicationTemplateId: string;
reason: string;
status: { date: number; status: string }[];
};

type SurveyUnitNewCommunicationRequest = {
communicationTemplateId : string;
communicationTemplateId: string;
reason: string;
creationDate : number
};

type SurveyUnitCommunicationTemplate = {
medium: string;
reason: string;
type : string;
type: string;
id: string;
};

Expand All @@ -117,10 +117,9 @@ declare global {
identificationConfiguration: string;
contactOutcomeConfiguration: string;
contactAttemptConfiguration: string;
communicationRequestConfiguration: boolean;
useLetterCommunication: boolean;
communicationRequests: SurveyUnitCommunicationRequest[];
communicationTemplates: SurveyUnitCommunicationTemplate[];

};

type Notification = {
Expand Down
5 changes: 5 additions & 0 deletions src/ui/SurveyUnit/Communication/CommunicationsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import AddIcon from '@mui/icons-material/Add';
import { CommunicationForm } from '../CommunicationForm';
import { CommunicationItem } from './CommunicationItem';
import Card from '@mui/material/Card/Card';
import { mediumEnum } from 'utils/enum/MediumEnum';
import {
communicationMediumEnum,
findCommunicationMediumLabelByValue,
} from 'utils/enum/CommunicationEnums';

interface CommunicationsCardProps {
surveyUnit: SurveyUnit;
Expand Down

0 comments on commit 06f69bf

Please sign in to comment.