diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
| commit | ef15022857409312e2b26585ba194f9838bf1262 (patch) | |
| tree | 4db2b9cb28eb823a1aacb10eaecc41c4964e5869 /src/utils/providers | |
| parent | 8bb3431fc1c545643511e586e6fa7218521b716f (diff) | |
| parent | 9226671f49b507ce6f71e6e2c3621014f05f74e9 (diff) | |
refactor: replace babel with swc
The build time will be faster with SWC.
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); |
