feat (lang) : add Contacts & Sales & Purchases.

This commit is contained in:
elforjani3
2021-06-06 20:32:55 +02:00
parent 366404e1d6
commit a70fd300f2
26 changed files with 161 additions and 122 deletions

View File

@@ -1,20 +1,21 @@
import React from 'react';
import {
ListSelect,
} from 'components';
import { formatMessage } from 'services/intl';
export default function SalutationList({
...restProps
}) {
import { ListSelect } from 'components';
export default function SalutationList({ ...restProps }) {
const saluations = ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.'];
const items = saluations.map((saluation) => ({ key: saluation, label: saluation }));
const items = saluations.map((saluation) => ({
key: saluation,
label: saluation,
}));
return (
<ListSelect
items={items}
selectedItemProp={'key'}
textProp={'label'}
defaultText={'Salutation'}
defaultText={formatMessage({ id: 'salutation' })}
filterable={false}
{...restProps}
/>