mirror of
https://github.com/woodchen-ink/CoverView.git
synced 2025-07-19 06:21: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',
|
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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user