Allow custom icons and additional links in left nav

This commit is contained in:
Daniel Lautzenheiser
2022-09-20 10:14:40 -04:00
parent a82f27100e
commit 04098bf96d
7 changed files with 127 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import React from 'react';
// Core
import { NetlifyCmsCore as CMS } from 'netlify-cms-core';
// Backends
@ -29,6 +30,7 @@ import NetlifyCmsWidgetColorString from 'netlify-cms-widget-colorstring';
import image from 'netlify-cms-editor-component-image';
// Locales
import * as locales from 'netlify-cms-locales';
import { images, Icon } from 'netlify-cms-ui-default';
// Register all the things
CMS.registerBackend('git-gateway', GitGatewayBackend);
@ -66,3 +68,7 @@ CMS.registerEditorComponent({
Object.keys(locales).forEach(locale => {
CMS.registerLocale(locale, locales[locale]);
});
Object.keys(images).forEach(iconName => {
CMS.registerIcon(iconName, <Icon type={iconName} />);
});