mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix: change labelProp to textProp
This commit is contained in:
@@ -81,7 +81,7 @@ function InventoryAdjustmentFormDialogFields({
|
||||
filterable={false}
|
||||
selectedItem={value}
|
||||
selectedItemProp={'value'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
@@ -54,7 +54,7 @@ export default function FinancialAccountsFilter({ ...restProps }) {
|
||||
filterable={false}
|
||||
selectedItem={value}
|
||||
selectedItemProp={'key'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
onItemSelect={(item) => {
|
||||
setFieldValue('accountsFilter', item.key);
|
||||
}}
|
||||
|
||||
@@ -27,7 +27,7 @@ export default function SelectsListColumnsBy(props) {
|
||||
filterable={false}
|
||||
selectedItem={value}
|
||||
selectedItemProp={'key'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
onItemSelect={(item) => {
|
||||
form.setFieldValue('displayColumnsType', item.key);
|
||||
}}
|
||||
|
||||
@@ -105,7 +105,7 @@ export default function PreferencesGeneralForm({}) {
|
||||
selectedItem={value}
|
||||
selectedItemProp={'value'}
|
||||
defaultText={<T id={'select_business_location'} />}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</FormGroup>
|
||||
@@ -130,7 +130,7 @@ export default function PreferencesGeneralForm({}) {
|
||||
selectedItem={value}
|
||||
selectedItemProp={'code'}
|
||||
defaultText={<T id={'select_base_currency'} />}
|
||||
labelProp={'label'}
|
||||
textProp={'label'}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</FormGroup>
|
||||
@@ -150,7 +150,7 @@ export default function PreferencesGeneralForm({}) {
|
||||
<ListSelect
|
||||
items={fiscalYearOptions}
|
||||
selectedItemProp={'value'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
defaultText={<T id={'select_fiscal_year'} />}
|
||||
selectedItem={value}
|
||||
onItemSelect={(item) => {}}
|
||||
@@ -173,7 +173,7 @@ export default function PreferencesGeneralForm({}) {
|
||||
<ListSelect
|
||||
items={languages}
|
||||
selectedItemProp={'value'}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
defaultText={<T id={'select_language'} />}
|
||||
selectedItem={value}
|
||||
onItemSelect={(item) => {}}
|
||||
@@ -227,7 +227,7 @@ export default function PreferencesGeneralForm({}) {
|
||||
selectedItem={value}
|
||||
selectedItemProp={'value'}
|
||||
defaultText={<T id={'select_date_format'} />}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
popoverProps={{ minimal: true }}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
@@ -321,7 +321,7 @@ function SetupOrganizationForm({
|
||||
selectedItem={values.base_currency}
|
||||
selectedItemProp={'value'}
|
||||
defaultText={<T id={'select_base_currency'} />}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
@@ -351,7 +351,7 @@ function SetupOrganizationForm({
|
||||
selectedItem={values.language}
|
||||
selectedItemProp={'value'}
|
||||
defaultText={<T id={'select_language'} />}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
@@ -380,7 +380,7 @@ function SetupOrganizationForm({
|
||||
selectedItem={values.fiscal_year}
|
||||
selectedItemProp={'value'}
|
||||
defaultText={<T id={'select_fiscal_year'} />}
|
||||
labelProp={'name'}
|
||||
textProp={'name'}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user