custom shortcut support in popup

This commit is contained in:
SethBurkart123
2023-09-25 09:32:09 +10:00
parent f5cc56c9d9
commit 86380b4ee0
9 changed files with 178 additions and 138 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
import Switch from '../components/Switch';
import ColorPicker from '../components/ColorPicker';
import { SettingsProps, SettingsList } from '../types/SettingsProps';
import { SettingsList } from '../types/SettingsProps';
import { useSettingsContext } from '../SettingsContext';
const Settings: React.FC<SettingsProps> = ({ settingsState, setSettingsState }) => {
const Settings: React.FC = () => {
const { settingsState, setSettingsState } = useSettingsContext();
const switchChange = (key: string, isOn: boolean) => {
setSettingsState({
@@ -52,7 +54,7 @@ const Settings: React.FC<SettingsProps> = ({ settingsState, setSettingsState })
];
return (
<div className="flex flex-col overflow-y-scroll divide-y divide-zinc-100">
<div className="flex flex-col -mt-4 overflow-y-scroll divide-y divide-zinc-100">
{settings.map((setting, index) => (
<div className="flex items-center justify-between px-4 py-3" key={index}>
<div className="pr-4">