Merge pull request #26 from KazooTTT/master
fix:reset and save the devIconOptions
BIN
public/logo.png
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 8.1 KiB |
@ -31,7 +31,7 @@ const defaultSettings = {
|
|||||||
font: 'font-Anek',
|
font: 'font-Anek',
|
||||||
theme: 'background',
|
theme: 'background',
|
||||||
customIcon: '',
|
customIcon: '',
|
||||||
platform: 'hashnode'
|
platform: 'hashnode'
|
||||||
};
|
};
|
||||||
|
|
||||||
const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/devicon.json"
|
const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/devicon.json"
|
||||||
@ -54,7 +54,10 @@ class Editor extends React.Component {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
handleReset = () => {
|
handleReset = () => {
|
||||||
this.setState(defaultSettings);
|
this.setState({
|
||||||
|
...defaultSettings,
|
||||||
|
devIconOptions: this.state.devIconOptions,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
getRandomTheme = (theme, Pattern) => {
|
getRandomTheme = (theme, Pattern) => {
|
||||||
|