diff --git a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeSelect.tsx b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeSelect.tsx index 87a2776eb..ca9009948 100644 --- a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeSelect.tsx +++ b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeSelect.tsx @@ -7,7 +7,6 @@ import { Text } from '@twilio-paste/core/text'; import { stringPrefix } from '../../flex-hooks/strings'; interface OwnProps { - id: string; label: string; value: string; options: string[]; @@ -15,12 +14,12 @@ interface OwnProps { disabled: boolean; } -const AttributeSelect = ({ id, label, value, options, onChangeHandler, disabled }: OwnProps) => { +const AttributeSelect = ({ label, value, options, onChangeHandler, disabled }: OwnProps) => { const handleChange = (e: React.ChangeEvent) => { const value = e.target.value; if (value !== 'none') onChangeHandler(value); }; - + const id = label.replace(' ', '-'); return ( diff --git a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeText.tsx b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeText.tsx index bdf390c71..2efc8aa13 100644 --- a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeText.tsx +++ b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/AttributeText.tsx @@ -7,19 +7,18 @@ import { Text } from '@twilio-paste/core/text'; import { stringPrefix } from '../../flex-hooks/strings'; interface OwnProps { - id: string; label: string; value: string; onChangeHandler: (value: string) => void; disabled: boolean; } -const AttributeText = ({ id, label, value, onChangeHandler, disabled }: OwnProps) => { +const AttributeText = ({ label, value, onChangeHandler, disabled }: OwnProps) => { const handleChange = (e: React.ChangeEvent) => { const value = e.target.value; onChangeHandler(value); }; - + const id = label.replace(' ', '-'); return ( diff --git a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/WorkerDetailsContainer.tsx b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/WorkerDetailsContainer.tsx index 8eab01056..211d48c32 100644 --- a/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/WorkerDetailsContainer.tsx +++ b/plugin-flex-ts-template-v2/src/feature-library/worker-details/custom-components/WorkerDetailsContainer/WorkerDetailsContainer.tsx @@ -125,41 +125,33 @@ const WorkerDetailsContainer = ({ worker }: OwnProps) => { {worker?.fullName || 'Agent'} - - - {
- - Agent Automation - - } - > + }> { - - Agent permissions - - } - > + }> ({ @@ -20,6 +22,8 @@ export const stringHook = () => ({ [StringTemplates.PSWorkerDetailsLocation]: 'Location', [StringTemplates.PSWorkerDetailsManager]: 'Manager', [StringTemplates.PSWorkerDetailsSchedule]: 'Schedule', + [StringTemplates.PSWorkerDetailsAutomation]: 'Automation', + [StringTemplates.PSWorkerDetailsPermissions]: 'Permissions', }, 'es-MX': esMX, });