mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feature : Puschases & Sales / fix : tasks
This commit is contained in:
@@ -9,6 +9,7 @@ export default function AccountsSelectList({
|
||||
selectedAccountId,
|
||||
defaultSelectText = 'Select account',
|
||||
onAccountSelected,
|
||||
disabled = false,
|
||||
}) {
|
||||
// Find initial account object to set it as default account in initial render.
|
||||
const initialAccount = useMemo(
|
||||
@@ -77,6 +78,7 @@ export default function AccountsSelectList({
|
||||
onItemSelect={onAccountSelect}
|
||||
>
|
||||
<Button
|
||||
disabled={disabled}
|
||||
text={selectedAccount ? selectedAccount.name : defaultSelectText}
|
||||
/>
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user