Skip to content

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

Interface: AccountBarProps ​

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

Props of the account bar.

Properties ​

account ​

account: PlatformAccount | undefined

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

The account, once known.


autoSignIn? ​

optional autoSignIn?: boolean

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

Whether the desktop app signs in again by itself with its Steam ticket here (the main menu does on Play online).


busy ​

busy: boolean

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

Whether an action is running.


error? ​

optional error?: string

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

What went wrong with the last action, shown in the sign-in form.


onAccount ​

onAccount: (account) => void

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

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:55

The platform's client.


prefix ​

prefix: string

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

The ids' prefix.


quiet? ​

optional quiet?: boolean

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

Nothing shows until the platform answered its /info (the main menu, which may have none).


run ​

run: (action) => Promise<void>

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

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

Parameters ​

action ​

() => Promise<void>

Returns ​

Promise<void>