From 980bff83f2374b9d4d7773b5f4304e9c6af155d4 Mon Sep 17 00:00:00 2001 From: le0zh Date: Mon, 25 Apr 2022 12:06:40 +0800 Subject: [PATCH] feat: add defaultIcon to devIconOptions --- src/components/Editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Editor.js b/src/components/Editor.js index 9e9369f..266ee71 100644 --- a/src/components/Editor.js +++ b/src/components/Editor.js @@ -5,14 +5,16 @@ import Select from 'react-select'; import RandomTheme from './RandomTheme'; // import resetIcon from '../assets/icons/reset.svg' +const defaultIcon = { 'label': 'react', 'value': 'react' } + const defaultSettings = { title: "How I built my first project with react", bgColor: "#dcd6f7", pattern: "", download: "PNG", author: 'Rutik Wankhade', - icon: { 'label': 'react', 'value': 'react' }, - devIconOptions: {}, + icon: defaultIcon, + devIconOptions: [defaultIcon], font: 'font-sans', theme: 'modern', customIcon: ''