feat: add defaultIcon to devIconOptions

This commit is contained in:
le0zh 2022-04-25 12:06:40 +08:00
parent cd486ea421
commit 980bff83f2

View File

@ -5,14 +5,16 @@ import Select from 'react-select';
import RandomTheme from './RandomTheme'; import RandomTheme from './RandomTheme';
// import resetIcon from '../assets/icons/reset.svg' // import resetIcon from '../assets/icons/reset.svg'
const defaultIcon = { 'label': 'react', 'value': 'react' }
const defaultSettings = { const defaultSettings = {
title: "How I built my first project with react", title: "How I built my first project with react",
bgColor: "#dcd6f7", bgColor: "#dcd6f7",
pattern: "", pattern: "",
download: "PNG", download: "PNG",
author: 'Rutik Wankhade', author: 'Rutik Wankhade',
icon: { 'label': 'react', 'value': 'react' }, icon: defaultIcon,
devIconOptions: {}, devIconOptions: [defaultIcon],
font: 'font-sans', font: 'font-sans',
theme: 'modern', theme: 'modern',
customIcon: '' customIcon: ''