Skip to content

Commit 50306ef

Browse files
author
Alexis
committed
fix: address comments about implementation of props for children and subNav
1 parent aae7ca4 commit 50306ef

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

src/content/docs/developer-tools/sdks/backend/nextjs-sdk.mdx

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,36 +1616,17 @@ To use our self-serve portal API please see [Get self-serve portal link](https:/
16161616
```jsx
16171617
import {PortalLink} from "@kinde-oss/kinde-auth-nextjs/components";
16181618

1619-
<PortalLink></PortalLink>
1620-
```
1621-
1622-
### children
1623-
1624-
When setting up your portal link, `children=""` must be set, as that will be what your link is called.
1625-
1626-
1627-
```jsx
1628-
import {PortalLink} from "@kinde-oss/kinde-auth-nextjs/components";
1629-
1630-
<PortalLink children="Portal Link Name"></PortalLink>
1619+
<PortalLink>Portal Link Name</PortalLink>
16311620
```
16321621
### subNav
16331622

16341623
The `subNav=""` property allows you to set the area of the portal you want the user to land on. By default, it will send users to their profile.
16351624

16361625
```jsx
16371626
import {PortalLink} from "@kinde-oss/kinde-auth-nextjs/components";
1638-
/**
1639-
* Valid subNav values are:
1640-
* profile
1641-
* organization_details
1642-
* organization_payment_details
1643-
* organization_plan_selection
1644-
* payment_details
1645-
* plan_details
1646-
* plan_selection
1647-
*/
1648-
<PortalLink subNav="organization_payment_details"></PortalLink>
1627+
import { PortalPage } from "@kinde/js-utils";
1628+
1629+
<PortalLink subNav={PortalPage.organizationPaymentDetails}></PortalLink>
16491630
```
16501631

16511632
### returnUrl

0 commit comments

Comments
 (0)