docs: update custom icon example
This commit is contained in:
parent
c1860c072d
commit
970a9e4a13
@ -24,7 +24,7 @@ import { faHouse } from '@fortawesome/free-solid-svg-icons';
|
|||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import CMS from '@staticcms/core';
|
import CMS from '@staticcms/core';
|
||||||
|
|
||||||
CMS.registerIcon('house', <FontAwesomeIcon icon={faHouse} size="lg" />);
|
CMS.registerIcon('house', () => <FontAwesomeIcon icon={faHouse} size="lg" />);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user