From 935a483eaaba8dbcf393f1e084e98af693445ec5 Mon Sep 17 00:00:00 2001 From: James Mikrut Date: Thu, 21 Oct 2021 09:27:42 -0400 Subject: [PATCH] Update overview.mdx --- docs/fields/overview.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fields/overview.mdx b/docs/fields/overview.mdx index 168f0e4da2..d4ee50037a 100644 --- a/docs/fields/overview.mdx +++ b/docs/fields/overview.mdx @@ -162,7 +162,7 @@ The `condition` function should return a boolean that will control if the field If you are building custom components, and you'd like for your custom components to support conditional logic as well, you can utilize Payload's `withCondition` higher-order function by importing it and using it as follows: -``` +```js import { withCondition } from 'payload/components/forms'; const CustomComponent = () => {