@touchtech/web-navigation-menu
v0.0.26
Published
Web navigation menu
Maintainers
Keywords
Readme
Web Navigation Menu
Usage
import { NavigationButton } from "@touchtech/web-navigation-menu";
<NavigationButton tenantServiceUrl="https://tenants.example.com" />;Pass your app's API client as api to have the brand list and the Subscription portal session requested through it:
<NavigationButton tenantServiceUrl="https://tenants.example.com" api={api} />;With api passed, the brand list the user sees when they open the menu and the Subscription action that takes them to the billing portal go out on the client the rest of the app uses, so they carry its sign-in token, its application and brand headers and its handling of an expired session. Omit api and the menu keeps using its built-in @touchtech/web-api-client client (ApiService.instance.api), as it does by default.
