From de405b421bda2177d1c01bf4bcb29157f08b99cd Mon Sep 17 00:00:00 2001 From: Skrubbadubba <75796723+Skrubbadubba@users.noreply.github.com> Date: Sun, 22 Jan 2023 23:17:46 +0100 Subject: [PATCH] docs: use provided "h" function instead of jsx (#406) --- packages/docs/content/docs/custom-icons.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/content/docs/custom-icons.mdx b/packages/docs/content/docs/custom-icons.mdx index e6c30f27..44fa5e45 100644 --- a/packages/docs/content/docs/custom-icons.mdx +++ b/packages/docs/content/docs/custom-icons.mdx @@ -24,7 +24,7 @@ import { faHouse } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import CMS from '@staticcms/core'; -CMS.registerIcon('house', () => ); +CMS.registerIcon('house', () => h(FontAwesomeIcon, {icon=faHouse, size="lg"})); ``` ## Usage