mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat (lang) : add Contacts & Sales & Purchases.
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user