mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
improvments to popup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ColorPicker from '../components/ColorPicker';
|
||||
import Switch from '../components/Switch';
|
||||
import Slider from '../components/Slider';
|
||||
import PickerSwatch from '../components/PickerSwatch';
|
||||
|
||||
import { SettingsList } from '../types/SettingsProps';
|
||||
import { useSettingsContext } from '../SettingsContext';
|
||||
@@ -20,13 +20,6 @@ const Settings: React.FC = () => {
|
||||
...settingsState,
|
||||
[key]: value,
|
||||
});
|
||||
}
|
||||
|
||||
const colorChange = (color: string) => {
|
||||
setSettingsState({
|
||||
...settingsState,
|
||||
customThemeColor: color,
|
||||
});
|
||||
};
|
||||
|
||||
const settings: SettingsList[] = [
|
||||
@@ -53,7 +46,7 @@ const Settings: React.FC = () => {
|
||||
{
|
||||
title: "Custom Theme Colour",
|
||||
description: "Customise the overall theme colour of SEQTA Learn.",
|
||||
modifyElement: <ColorPicker color={settingsState.customThemeColor} onChange={(color: string) => colorChange(color)} />
|
||||
modifyElement: <PickerSwatch />
|
||||
},
|
||||
{
|
||||
title: "BetterSEQTA+",
|
||||
|
||||
Reference in New Issue
Block a user