mirror of
https://github.com/woodchen-ink/CoverView.git
synced 2025-07-18 05:51:56 +08:00
fix:reset and save the devIconOptions
This commit is contained in:
parent
ea121e45dc
commit
ecb040a906
@ -31,7 +31,7 @@ const defaultSettings = {
|
||||
font: 'font-Anek',
|
||||
theme: 'background',
|
||||
customIcon: '',
|
||||
platform: 'hashnode'
|
||||
platform: 'hashnode'
|
||||
};
|
||||
|
||||
const devIconsUrl = "https://raw.githubusercontent.com/devicons/devicon/master/devicon.json"
|
||||
@ -54,7 +54,10 @@ class Editor extends React.Component {
|
||||
})
|
||||
}
|
||||
handleReset = () => {
|
||||
this.setState(defaultSettings);
|
||||
this.setState({
|
||||
...defaultSettings,
|
||||
devIconOptions: this.state.devIconOptions,
|
||||
});
|
||||
};
|
||||
|
||||
getRandomTheme = (theme, Pattern) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user