diff --git a/plugin-hrm-form/src/styles/twilioTaskPanel.tsx b/plugin-hrm-form/src/styles/twilioTaskPanel.tsx index dfa2f9a963..c9c6210cf4 100644 --- a/plugin-hrm-form/src/styles/twilioTaskPanel.tsx +++ b/plugin-hrm-form/src/styles/twilioTaskPanel.tsx @@ -24,6 +24,12 @@ export const PanelContainer = styled('div')` `; PanelContainer.displayName = 'PanelContainer'; +export const SectionGroup = styled('div')` + margin-bottom: 8px; +`; + +SectionGroup.displayName = 'SectionGroup'; + export const Section = styled('div')` margin-bottom: 1rem; `; diff --git a/plugin-hrm-form/src/voicemail/VoicemailTaskPanel.tsx b/plugin-hrm-form/src/voicemail/VoicemailTaskPanel.tsx index 4c2bb67378..8b46f9712c 100644 --- a/plugin-hrm-form/src/voicemail/VoicemailTaskPanel.tsx +++ b/plugin-hrm-form/src/voicemail/VoicemailTaskPanel.tsx @@ -25,10 +25,7 @@ import { RecordingSection } from '../components/contact/MediaSection'; import { RootState } from '../states'; import selectContactByTaskSid from '../states/contacts/selectContactByTaskSid'; import { isS3StoredRecording } from '../types/types'; -import { PanelContainer, Section, SectionHeader } from '../styles/twilioTaskPanel'; -import VoicemailIcon from '../components/common/icons/VoicemailIcon'; -import CallIcon from '../components/common/icons/CallIcon'; -import HrmTheme from '../styles/HrmTheme'; +import { PanelContainer, Section, SectionGroup, SectionHeader } from '../styles/twilioTaskPanel'; import { createVoicemailSchedule } from '../services/scheduledJobsService'; import { VoicemailActionsNotifications } from './setUpVoicemailComponents'; @@ -81,71 +78,71 @@ const VoicemailTaskPanel: React.FC = ({ task }) => { return ( -
- - - -
- -
-
-
- - - -

{from}

-
-
- - - -

- -

-
- {callbackAttempts.length < maxCallbackAttempts && !Flex.TaskHelper.isInWrapupMode(task) && ( - <> -
- - - - - -
-
- - - - - -
- - )} -
- - - - {callbackAttempts.length ? ( - callbackAttempts.map((attempt, idx) => ( -

- -

- )) - ) : ( + +
+ + + +
+ +
+
+
+ + + +

{from}

+
+
+ + +

- +

+
+ {callbackAttempts.length < maxCallbackAttempts && !Flex.TaskHelper.isInWrapupMode(task) && ( + <> +
+ + + +
+
+ + + +
+ )} -
+ + +
+ + + + {callbackAttempts.length ? ( + callbackAttempts.map((attempt, idx) => ( +

+ +

+ )) + ) : ( +

+ +

+ )} +
+
);