diff options
Diffstat (limited to 'packages/demobank-ui/src/components/Transactions')
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/index.ts | 12 | ||||
-rw-r--r-- | packages/demobank-ui/src/components/Transactions/views.tsx | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/components/Transactions/index.ts b/packages/demobank-ui/src/components/Transactions/index.ts index f4e799839..42b12ac65 100644 --- a/packages/demobank-ui/src/components/Transactions/index.ts +++ b/packages/demobank-ui/src/components/Transactions/index.ts @@ -23,7 +23,11 @@ import { RouteDefinition } from "../../route.js"; export interface Props { account: string; - routeCreateWireTransfer: RouteDefinition<{ destination: string }> | undefined; + routeCreateWireTransfer: RouteDefinition<{ + account?: string, + subject?: string, + amount?: string, + }> | undefined; } export type State = State.Loading | State.LoadingUriError | State.Ready; @@ -45,7 +49,11 @@ export namespace State { export interface Ready extends BaseInfo { status: "ready"; error: undefined; - routeCreateWireTransfer: RouteDefinition<{ destination: string }> | undefined; + routeCreateWireTransfer: RouteDefinition<{ + account?: string, + subject?: string, + amount?: string, + }> | undefined; transactions: Transaction[]; onPrev?: () => void; onNext?: () => void; diff --git a/packages/demobank-ui/src/components/Transactions/views.tsx b/packages/demobank-ui/src/components/Transactions/views.tsx index a1ec0fa00..321a6ff3a 100644 --- a/packages/demobank-ui/src/components/Transactions/views.tsx +++ b/packages/demobank-ui/src/components/Transactions/views.tsx @@ -154,7 +154,7 @@ export function ReadyView({ <a name={`transfer to ${item.counterpart}`} href={routeCreateWireTransfer.url({ - destination: item.counterpart, + account: item.counterpart, })} class="text-indigo-600 hover:text-indigo-900" > @@ -191,7 +191,7 @@ export function ReadyView({ <a name={`wire transfer to ${item.counterpart}`} href={routeCreateWireTransfer.url({ - destination: item.counterpart, + account: item.counterpart, })} class="text-indigo-600 hover:text-indigo-900" > |