mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat: optimize SMS notifications RTL.
This commit is contained in:
@@ -12,6 +12,8 @@ import { useSMSMessageDialogContext } from './SMSMessageDialogProvider';
|
|||||||
import { SMSMessagePreview } from 'components';
|
import { SMSMessagePreview } from 'components';
|
||||||
import { getSMSUnits } from '../../NotifyViaSMS/utils';
|
import { getSMSUnits } from '../../NotifyViaSMS/utils';
|
||||||
|
|
||||||
|
import { whenRtl, whenLtr } from 'utils/styled-components';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SMS message form content.
|
* SMS message form content.
|
||||||
*/
|
*/
|
||||||
@@ -103,7 +105,15 @@ const FormPreview = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 45%;
|
width: 45%;
|
||||||
padding-left: 25px;
|
|
||||||
margin-left: 25px;
|
${whenLtr(`
|
||||||
border-left: 1px solid #dcdcdd;
|
padding-left: 25px;
|
||||||
|
margin-left: 25px;
|
||||||
|
border-left: 1px solid #dcdcdd;
|
||||||
|
`)}
|
||||||
|
${whenRtl(`
|
||||||
|
padding-right: 25px;
|
||||||
|
margin-right: 25px;
|
||||||
|
border-right: 1px solid #dcdcdd;
|
||||||
|
`)}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export default function SMSMessageFormFields() {
|
|||||||
intent={Intent.PRIMARY}
|
intent={Intent.PRIMARY}
|
||||||
onClick={handleBtnClick}
|
onClick={handleBtnClick}
|
||||||
>
|
>
|
||||||
Reset to default message.
|
<T id={'sms_message.edit_form.reset_to_default_message'} />
|
||||||
</ResetButton>
|
</ResetButton>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import { FormObserver, SMSMessagePreview } from 'components';
|
|||||||
import { transformToForm, safeInvoke } from 'utils';
|
import { transformToForm, safeInvoke } from 'utils';
|
||||||
import { getSMSUnits } from './utils';
|
import { getSMSUnits } from './utils';
|
||||||
|
|
||||||
|
import { whenRtl, whenLtr } from 'utils/styled-components';
|
||||||
|
|
||||||
const defaultInitialValues = {
|
const defaultInitialValues = {
|
||||||
notification_key: '',
|
notification_key: '',
|
||||||
customer_name: '',
|
customer_name: '',
|
||||||
@@ -145,9 +147,17 @@ const SMSPreviewSectionRoot = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 45%;
|
width: 45%;
|
||||||
padding-left: 25px;
|
|
||||||
margin-left: 25px;
|
${whenLtr(`
|
||||||
border-left: 1px solid #dcdcdd;
|
padding-left: 25px;
|
||||||
|
margin-left: 25px;
|
||||||
|
border-left: 1px solid #dcdcdd;
|
||||||
|
`)}
|
||||||
|
${whenRtl(`
|
||||||
|
padding-right: 25px;
|
||||||
|
margin-right: 25px;
|
||||||
|
border-right: 1px solid #dcdcdd;
|
||||||
|
`)}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const SMSPreviewSectionNote = styled.div`
|
const SMSPreviewSectionNote = styled.div`
|
||||||
|
|||||||
@@ -1444,7 +1444,7 @@
|
|||||||
"notify_via_sms.dialog.message_text": "نص الرسالة ",
|
"notify_via_sms.dialog.message_text": "نص الرسالة ",
|
||||||
"notify_via_sms.dialog.notification_type": "نوع الإشعار",
|
"notify_via_sms.dialog.notification_type": "نوع الإشعار",
|
||||||
"notify_via_sms.dialog.notify_via_sms": "إشعار عبر رسائل قصيرة",
|
"notify_via_sms.dialog.notify_via_sms": "إشعار عبر رسائل قصيرة",
|
||||||
"notiify_via_sms.dialog.sms_note": "<strong>ملاحظة :</strong> يمكن أن تحتوي رسالة قصيرة الواحدة على 160 حرفًا كحد أقصى. <strong>{value}</strong> سيتم استخدام وحدات الرسائل القصيرة لإرسال هذا إشعار عبر الرسائل القصيرة. ",
|
"notiify_via_sms.dialog.sms_note": "<strong>ملاحظة :</strong> يمكن أن تحتوي رسالة قصيرة الواحدة على 160 حرفًا كحد أقصى <strong>{value}</strong>. سيتم استخدام وحدات الرسائل القصيرة لإرسال هذا إشعار عبر الرسائل القصيرة. ",
|
||||||
"notify_Via_sms.dialog.customer_phone_number_does_not_eixst": "رقم هاتف العميل غير موجود ، يرجى إدخال رقم هاتف للعميل. ",
|
"notify_Via_sms.dialog.customer_phone_number_does_not_eixst": "رقم هاتف العميل غير موجود ، يرجى إدخال رقم هاتف للعميل. ",
|
||||||
"notify_Via_sms.dialog.customer_phone_number_invalid": "رقم هاتف العميل غير صالح ، يرجى إدخال رقم هاتف صحيح للعميل. ",
|
"notify_Via_sms.dialog.customer_phone_number_invalid": "رقم هاتف العميل غير صالح ، يرجى إدخال رقم هاتف صحيح للعميل. ",
|
||||||
"notify_via_sms.dialog.phone_invalid_error_message": "لا يمكن إرسال إشعار الرسائل القصيرة ، رقم الهاتف للعميل غير صالح ، يرجى إدخال رقم صالح والمحاولة مرة أخرى.",
|
"notify_via_sms.dialog.phone_invalid_error_message": "لا يمكن إرسال إشعار الرسائل القصيرة ، رقم الهاتف للعميل غير صالح ، يرجى إدخال رقم صالح والمحاولة مرة أخرى.",
|
||||||
@@ -1470,6 +1470,6 @@
|
|||||||
"edit_message_text": "تعديل نص رسالة",
|
"edit_message_text": "تعديل نص رسالة",
|
||||||
"enable_notification": "تفعيل الإشعارات",
|
"enable_notification": "تفعيل الإشعارات",
|
||||||
"send_sms": "إرسال رسالة قصيرة",
|
"send_sms": "إرسال رسالة قصيرة",
|
||||||
"save_sms_message": "حفظ رسالة قصيرة"
|
"save_sms_message": "حفظ رسالة قصيرة",
|
||||||
|
"sms_message.edit_form.reset_to_default_message": "إعادة التعيين إلى الرسالة الافتراضية."
|
||||||
}
|
}
|
||||||
@@ -1456,5 +1456,6 @@
|
|||||||
"edit_message_text": "Edit message text",
|
"edit_message_text": "Edit message text",
|
||||||
"enable_notification": "Enable notification",
|
"enable_notification": "Enable notification",
|
||||||
"send_sms": "Send SMS",
|
"send_sms": "Send SMS",
|
||||||
"save_sms_message": "Save SMS Message"
|
"save_sms_message": "Save SMS Message",
|
||||||
|
"sms_message.edit_form.reset_to_default_message": "Reset to default message."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user