diff --git a/src/settings/components/general-settings/out-of-office-view.tsx b/src/settings/components/general-settings/out-of-office-view.tsx index 179a1fdc..8cec0258 100644 --- a/src/settings/components/general-settings/out-of-office-view.tsx +++ b/src/settings/components/general-settings/out-of-office-view.tsx @@ -8,12 +8,11 @@ import React, { useState, useCallback, FC, useEffect, useMemo } from 'react'; import { Container, FormSubSection, - Input, Checkbox, Select, Padding } from '@zextras/carbonio-design-system'; - +import styled from 'styled-components'; // eslint-disable-next-line import/no-extraneous-dependencies import momentLocalizer from 'react-widgets-moment'; import { useTranslation } from 'react-i18next'; @@ -34,6 +33,23 @@ import { } from '../utils'; import { outOfOfficeSubSection } from '../../general-settings-sub-sections'; +const TextArea = styled.textarea` + box-sizing: border-box; + padding: 10px; + min-height: 150px; + background: ${({ theme }): string => theme.palette.gray5.regular}; + flex-grow: 1; + width: 100%; + border: none; + resize: vertical; + & :focus, + :active { + box-shadow: none; + border: none; + outline: none; + } +`; + momentLocalizer(); const OutOfOfficeView: FC<{ @@ -145,16 +161,17 @@ const OutOfOfficeView: FC<{ selection={selectedItemSendAutoReplies} /> - ): void => { - setInputZimbraPrefOutOfOfficeReply(e.target.value); - updatePrefs(e.target.value, 'zimbraPrefOutOfOfficeReply'); - }} - autoComplete="on" - label={t('settings.out_of_office.labels.auto_reply_message', 'Auto-Reply Message:')} - backgroundColor="gray5" +