File tree Expand file tree Collapse file tree 1 file changed +4
-23
lines changed
src/content/docs/developer-tools/sdks/backend Expand file tree Collapse file tree 1 file changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -1616,36 +1616,17 @@ To use our self-serve portal API please see [Get self-serve portal link](https:/
1616
1616
``` jsx
1617
1617
import {PortalLink } from " @kinde-oss/kinde-auth-nextjs/components" ;
1618
1618
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>
1631
1620
```
1632
1621
### subNav
1633
1622
1634
1623
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.
1635
1624
1636
1625
``` jsx
1637
1626
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>
1649
1630
```
1650
1631
1651
1632
### returnUrl
You can’t perform that action at this time.
0 commit comments