View
The View
component houses global components common to all views, such as notifications and dialogs. It handles errors, sets the document title, and renders the specified layout. The view and its props are rendered by the router.
Props are passed to this component automatically from the router.
Usage
Props
Prop | Description | Required | Value |
---|---|---|---|
display | view component | required | component |
layout | layout component to use | required | string (account/app/auth/onboarding) |
title | document title | required | string |
Notes
The
View
component relies onViewContext
for managing notifications, dialogs, and error handling.The component uses
useTranslation
for internationalization anduseToast
for toast notifications.Layouts include
AppLayout
,AuthLayout
,AccountLayout
, andOnboardingLayout
.
Last updated