Merge pull request #26 from KazooTTT/master

fix:reset and save the devIconOptions
This commit is contained in:
Rutik Wankhade 2024-09-08 11:50:01 +05:30 committed by GitHub
commit c741d2ab67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -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) => {