Manta Developers
GitHub
Menu

@manta-eu/react/components/app-gate

Reference for @manta-eu/react/components/app-gate as it is on main.

Type Aliases

AppGateProps

AppGateProps = object

Properties

children

children: ReactNode

context?

optional context?: Pick<AuthContextValue, "canDisconnectCustomApps" | "hasProfilePage">

renderAwaitingDatastore?

optional renderAwaitingDatastore?: (user, onSignOut, setup, selfServeSignup) => ReactNode

Replaces setup while the organization has no datastore yet; not used on a custom app’s sign-in.

Parameters
user

User

onSignOut

() => void

setup

ReactNode

selfServeSignup

boolean

Returns

ReactNode

renderNoOrganization?

optional renderNoOrganization?: (user, onSignOut, selfServeSignup) => ReactNode

Replaces the “not in an organization” screen for someone nobody invited; not used on a custom app’s sign-in.

Parameters
user

User

onSignOut

() => void

selfServeSignup

boolean

Returns

ReactNode


AwaitingDatastoreStatusProps

AwaitingDatastoreStatusProps = object & ({ customApp?: false; inOrganization: boolean; } | { customApp: true; inOrganization?: never; })

Type Declaration

failure?

optional failure?: string

onCheckAgain?

optional onCheckAgain?: () => Promise<boolean>

Shows a “Check again” button that asks at once what the page asks on its own; false when no answer came.

Returns

Promise<boolean>

onSignOut

onSignOut: () => void

Returns

void


EnterDatastoreRouteProps

EnterDatastoreRouteProps = object

Properties

entryPath?

optional entryPath?: (pathname) => string | undefined

The page to open in the datastore for an address outside it; by default the same address inside it.

Parameters
pathname

string

Returns

string | undefined

Variables

sdkRouteElements

const sdkRouteElements: object

Type Declaration

Activity

Activity: Element

ActivityDetail

ActivityDetail: Element

Chat

Chat: Element

DataCollection

DataCollection: Element

DataDetail

DataDetail: Element

DataEntity

DataEntity: Element

DataExplorerCoverage

DataExplorerCoverage: Element

DataExplorerFiles

DataExplorerFiles: Element

DataExplorerIndex

DataExplorerIndex: Element

DataExplorerIngest

DataExplorerIngest: Element

DataExplorerLayout

DataExplorerLayout: Element

DataExplorerPrefix

DataExplorerPrefix: Element

DataExplorerRecent

DataExplorerRecent: Element

DataExplorerType

DataExplorerType: Element

EnterDatastore

EnterDatastore: Element

Explain

Explain: Element

Group

Group: Element

Memories

Memories: Element

NotFound

NotFound: Element

Plans

Plans: Element

Deprecated

Use pages from @manta-eu/react/pages with AppShellRoutes instead; removed in 1.0. See https://developers.manta.eu/guides/migrating-to-screens/

Functions

AppGate()

AppGate(props): Element

Parameters

props

AppGateProps

Returns

Element


AwaitingDatastoreStatus()

AwaitingDatastoreStatus(props): Element

Parameters

props

AwaitingDatastoreStatusProps

Returns

Element


EnterDatastoreRoute()

EnterDatastoreRoute(props): Element

Parameters

props

EnterDatastoreRouteProps

Returns

Element