mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: change labelProp to textProp
This commit is contained in:
@@ -39,7 +39,7 @@ export default function AccountsTypesSelect({
|
||||
items={items}
|
||||
selectedItemProp={'id'}
|
||||
selectedItem={selectedTypeId}
|
||||
labelProp={'label'}
|
||||
textProp={'label'}
|
||||
defaultText={defaultSelectText}
|
||||
onItemSelect={handleItemSelected}
|
||||
itemPredicate={filterAccountTypeItems}
|
||||
|
||||
@@ -44,7 +44,7 @@ export default function CategoriesSelectList({
|
||||
items={categoriesList}
|
||||
selectedItemProp={'id'}
|
||||
selectedItem={selecetedCategoryId}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
defaultText={defaultSelectText}
|
||||
onItemSelect={handleItemCategorySelected}
|
||||
itemPredicate={filterItemCategory}
|
||||
|
||||
@@ -34,7 +34,7 @@ export default function DisplayNameList({
|
||||
<ListSelect
|
||||
items={formatOptions}
|
||||
selectedItemProp={'label'}
|
||||
labelProp={'label'}
|
||||
textProp={'label'}
|
||||
defaultText={'Select display name as'}
|
||||
filterable={false}
|
||||
{ ...restProps }
|
||||
|
||||
@@ -158,7 +158,7 @@ function DynamicFilterValueField({
|
||||
selectedItem={value}
|
||||
selectedItemProp={optionsKey}
|
||||
defaultText={`Select an option`}
|
||||
labelProp={optionsLabel}
|
||||
textProp={optionsLabel}
|
||||
buttonProps={{
|
||||
onClick: handleBtnClick
|
||||
}}
|
||||
|
||||
@@ -75,7 +75,7 @@ function ItemsListField({
|
||||
onItemSelect={onItemSelect}
|
||||
selectedItem={`${selectedItemId}`}
|
||||
selectedItemProp={'id'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
defaultText={selectedItem ? selectedItem.name : defautlSelectText}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -29,7 +29,7 @@ function PaymentReceiveListField({
|
||||
onItemSelect={onInvoiceSelect}
|
||||
selectedItem={`${selectedInvoiceId}`}
|
||||
selectedItemProp={'id'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
defaultText={defaultSelectText}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function SalutationList({
|
||||
<ListSelect
|
||||
items={items}
|
||||
selectedItemProp={'key'}
|
||||
labelProp={'label'}
|
||||
textProp={'label'}
|
||||
defaultText={'Salutation'}
|
||||
filterable={false}
|
||||
{...restProps}
|
||||
|
||||
Reference in New Issue
Block a user