Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 970a9e4

Browse files
committed
docs: update custom icon example
1 parent c1860c0 commit 970a9e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/content/docs/custom-icons.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { faHouse } from '@fortawesome/free-solid-svg-icons';
2424
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2525
import CMS from '@staticcms/core';
2626

27-
CMS.registerIcon('house', <FontAwesomeIcon icon={faHouse} size="lg" />);
27+
CMS.registerIcon('house', () => <FontAwesomeIcon icon={faHouse} size="lg" />);
2828
```
2929

3030
## Usage

0 commit comments

Comments
 (0)