feat: add animation switch

This commit is contained in:
sethburkart123
2024-06-19 09:48:29 +10:00
parent 9d13879936
commit 4dcc895cad
@@ -51,6 +51,11 @@ const Settings: React.FC = () => {
description: "Customise the sidebar layout.", description: "Customise the sidebar layout.",
modifyElement: <button onClick={() => browser.runtime.sendMessage({ type: 'currentTab', info: 'EditSidebar' })} className='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md'>Edit</button> modifyElement: <button onClick={() => browser.runtime.sendMessage({ type: 'currentTab', info: 'EditSidebar' })} className='px-4 py-1 text-[0.75rem] dark:bg-[#38373D] bg-[#DDDDDD] dark:text-white rounded-md'>Edit</button>
}, },
{
title: "Animations",
description: "Enables animations on certain pages.",
modifyElement: <Switch state={settingsState.animations} onChange={(isOn: boolean) => switchChange('animations', isOn)} />
},
{ {
title: "Notification Collector", title: "Notification Collector",
description: "Uncaps the 9+ limit for notifications, showing the real number.", description: "Uncaps the 9+ limit for notifications, showing the real number.",