Skip to content

five-on-it / apps/client/src/ui/AccountBar / AccountBarProps

Interface: AccountBarProps ​

Defined in: apps/client/src/ui/AccountBar.tsx:43

Props of the account bar.

Properties ​

account ​

account: PlatformAccount | undefined

Defined in: apps/client/src/ui/AccountBar.tsx:47

The account, once known.


busy ​

busy: boolean

Defined in: apps/client/src/ui/AccountBar.tsx:53

Whether an action is running.


onAccount ​

onAccount: (account) => void

Defined in: apps/client/src/ui/AccountBar.tsx:49

Called with the account after signing in, and with none after signing out.

Parameters ​

account ​

PlatformAccount | undefined

Returns ​

void


platform ​

platform: Platform

Defined in: apps/client/src/ui/AccountBar.tsx:45

The platform's client.


prefix ​

prefix: string

Defined in: apps/client/src/ui/AccountBar.tsx:55

The ids' prefix.


run ​

run: (action) => Promise<void>

Defined in: apps/client/src/ui/AccountBar.tsx:51

Runs an action, showing its error; the buttons wait while one runs.

Parameters ​

action ​

() => Promise<void>

Returns ​

Promise<void>