diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-23 22:05:30 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:01:03 +0100 |
| commit | 9226671f49b507ce6f71e6e2c3621014f05f74e9 (patch) | |
| tree | 73a148d12ceebbf0d8a95b82353d3d84f6a7a76a /src/utils/providers | |
| parent | 4e7a96c5a831882463802cdd4f84fe1464969cb0 (diff) | |
refactor: load prism plugins without babel
Diffstat (limited to 'src/utils/providers')
| -rw-r--r-- | src/utils/providers/prism-theme.tsx (renamed from src/utils/providers/prism.tsx) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils/providers/prism.tsx b/src/utils/providers/prism-theme.tsx index 7a4221d..2ed8454 100644 --- a/src/utils/providers/prism.tsx +++ b/src/utils/providers/prism-theme.tsx @@ -28,8 +28,12 @@ export type PrismThemeProviderProps = { export const PrismThemeContext = createContext<UsePrismThemeProps>({ themes: ['dark', 'light', 'system'], - setTheme: (_) => {}, - setCodeBlocks: (_) => {}, + setTheme: (_) => { + // This is intentional. + }, + setCodeBlocks: (_) => { + // This is intentional. + }, }); export const usePrismTheme = () => useContext(PrismThemeContext); |
