mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
32 lines
1.0 KiB
JavaScript
32 lines
1.0 KiB
JavaScript
import React from 'react';
|
|
|
|
import { FastField, Field, ErrorMessage } from 'formik';
|
|
import { Classes, FormGroup, TextArea } from '@blueprintjs/core';
|
|
import { FormattedMessage as T, FieldRequiredHint } from 'components';
|
|
import { inputIntent } from 'utils';
|
|
|
|
export default function SMSMessageFormFields() {
|
|
return (
|
|
<div className={Classes.DIALOG_BODY}>
|
|
{/* ----------- Message Text ----------- */}
|
|
<FastField name={'message_text'}>
|
|
{({ field, meta: { error, touched } }) => (
|
|
<FormGroup
|
|
label={<T id={'notify_via_sms.dialog.message_text'} />}
|
|
className={'form-group--message_text'}
|
|
intent={inputIntent({ error, touched })}
|
|
helperText={<ErrorMessage name={'message_text'} />}
|
|
>
|
|
<TextArea
|
|
growVertically={true}
|
|
large={true}
|
|
intent={inputIntent({ error, touched })}
|
|
{...field}
|
|
/>
|
|
</FormGroup>
|
|
)}
|
|
</FastField>
|
|
</div>
|
|
);
|
|
}
|