| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,24 +287,10 @@ const pluginOptionsSchema = (/** @type {{ Joi: import('joi') }} */ { Joi }) => { | |||
| 287 | 287 | }) | |
| 288 | 288 | } | |
| 289 | 289 | ||
| 290 | - const onCreateWebpackConfig = ({ stage, rules, loaders, plugins, actions }) => { | ||
| 291 | - actions.setWebpackConfig({ | ||
| 292 | - module: { | ||
| 293 | - rules: [ | ||
| 294 | - { | ||
| 295 | - test: /\.mdx$/, | ||
| 296 | - use: '@mdx-js/loader', | ||
| 297 | - }, | ||
| 298 | - ], | ||
| 299 | - }, | ||
| 300 | - }) | ||
| 301 | - } | ||
| 302 | - | ||
| 303 | 290 | module.exports = { | |
| 304 | 291 | createSchemaCustomization, | |
| 305 | 292 | onPreBootstrap, | |
| 306 | 293 | onCreateNode, | |
| 307 | 294 | createPages, | |
| 308 | 295 | pluginOptionsSchema, | |
| 309 | - onCreateWebpackConfig, | ||
| 310 | 296 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ export const ColorModeSwitcher = React.forwardRef((props, ref) => { | |||
| 18 | 18 | <x.button | |
| 19 | 19 | ref={ref} | |
| 20 | 20 | type="button" | |
| 21 | - onClick={() => setMode(getInverseMode)} | ||
| 21 | + onClick={() => setMode(getInverseMode(mode))} | ||
| 22 | 22 | {...props} | |
| 23 | 23 | > | |
| 24 | 24 | <Icon style={{ width: 24, height: 24 }} /> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments