From 915a3ce3f516e6cbd5e33de2a5ad26f99cc641eb Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 28 Oct 2024 23:56:05 -0600 Subject: [PATCH] docs: fix dead link for local API (#8917) --- docs/admin/components.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/admin/components.mdx b/docs/admin/components.mdx index e8a38464d62..291d657c626 100644 --- a/docs/admin/components.mdx +++ b/docs/admin/components.mdx @@ -8,7 +8,7 @@ keywords: admin, components, custom, documentation, Content Management System, c The Payload [Admin Panel](./overview) is designed to be as minimal and straightforward as possible to allow for both easy customization and full control over the UI. In order for Payload to support this level of customization, Payload provides a pattern for you to supply your own React components through your [Payload Config](../configuration/overview). -All Custom Components in Payload are [React Server Components](https://react.dev/reference/rsc/server-components) by default, with the exception of [Custom Providers](#custom-providers). This enables the use of the [Local API](../local-api) directly on the front-end. Custom Components are available for nearly every part of the Admin Panel for extreme granularity and control. +All Custom Components in Payload are [React Server Components](https://react.dev/reference/rsc/server-components) by default, with the exception of [Custom Providers](#custom-providers). This enables the use of the [Local API](../local-api/overview) directly on the front-end. Custom Components are available for nearly every part of the Admin Panel for extreme granularity and control. Note: @@ -329,7 +329,7 @@ export const useMyCustomContext = () => useContext(MyCustomContext) ## Building Custom Components -All Custom Components in Payload are [React Server Components](https://react.dev/reference/rsc/server-components) by default, with the exception of [Custom Providers](#custom-providers). This enables the use of the [Local API](../local-api) directly on the front-end, among other things. +All Custom Components in Payload are [React Server Components](https://react.dev/reference/rsc/server-components) by default, with the exception of [Custom Providers](#custom-providers). This enables the use of the [Local API](../local-api/overview) directly on the front-end, among other things. To make building Custom Components as easy as possible, Payload automatically provides common props, such as the [`payload`](../local-api/overview) class and the [`i18n`](../configuration/i18n) object. This means that when building Custom Components within the Admin Panel, you do not have to get these yourself.