moved stores back into shared

This commit is contained in:
Sriram Hariharan
2023-03-10 23:38:39 -06:00
parent d06b0f9f7a
commit 32b73da959
12 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
import { createSyncStore, debugStore } from 'chrome-extension-toolkit';
/**
* A store that is used for storing user options
*/
interface IOptionsStore {
/** whether we should automatically highlight conflicts on the course schedule page */
shouldHighlightConflicts: boolean;
/** whether we should automatically scroll to load more courses on the course schedule page (without having to click next) */
shouldScrollToLoad: boolean;
}
export const OptionsStore = createSyncStore<IOptionsStore>({
shouldHighlightConflicts: true,
shouldScrollToLoad: true,
});
debugStore({ OptionsStore });