Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/clone/components/GithubConnectedPanel

Cockpit client (features), next. Source: ui/client/features/clone/components/GithubConnectedPanel.tsx.

Functions#

GithubConnectedPanel()#

GithubConnectedPanel(__namedParameters): Element

Defined in: ui/client/features/clone/components/GithubConnectedPanel.tsx:24

Presentation-only: GitHub is connected. "Use my GitHub login" is the default, with a picker of the repositories the connection can read; "Paste an access token instead" keeps the token field as the fallback; and Disconnect takes the connection away at once.

Props#

Prop Type Required Default Description
login `string null` Yes —
mode CloneAuthMode Yes —
token ComponentProps<typeof CloneTokenField> Yes —
picker ComponentProps<typeof GithubRepoPicker> Yes —
busy boolean Yes —
error `string null` Yes —
onMode (mode: CloneAuthMode) => void Yes —
onDisconnect () => void Yes —

Returns#

Element