diff options
| author | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:23:37 -0300 |
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:23:49 -0300 |
| commit | 9697e953f56dc37208c2852d686d1854256f71ef (patch) | |
| tree | fbbe6e5934c1a8dd438da76d37b719372811b542 /packages/demobank-ui/src/components/Cashouts/state.ts | |
| parent | 8b83f729d7394837a3be231bbeeea44f6a01e9a1 (diff) | |
cashout for business accounts
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/state.ts')
| -rw-r--r-- | packages/demobank-ui/src/components/Cashouts/state.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/state.ts b/packages/demobank-ui/src/components/Cashouts/state.ts index 178a1e815..124f9bf9c 100644 --- a/packages/demobank-ui/src/components/Cashouts/state.ts +++ b/packages/demobank-ui/src/components/Cashouts/state.ts @@ -14,12 +14,11 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { AbsoluteTime, Amounts } from "@gnu-taler/taler-util"; import { useCashouts } from "../../hooks/circuit.js"; -import { Props, State, Transaction } from "./index.js"; +import { Props, State } from "./index.js"; -export function useComponentState({ empty }: Props): State { - const result = useCashouts(); +export function useComponentState({ account, onSelected }: Props): State { + const result = useCashouts(account); if (result.loading) { return { status: "loading", @@ -37,5 +36,6 @@ export function useComponentState({ empty }: Props): State { status: "ready", error: undefined, cashouts: result.data, + onSelected, }; } |
