Skip to content

Commit

Permalink
fix: mode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
craigyu committed Dec 25, 2024
1 parent 645e83f commit af0ab8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import {Provider} from '@react-spectrum/provider';
import theme from 'fds-theme';
import {theme as adobeTheme} from '@react-spectrum/theme-default'
import type {Preview} from '@storybook/react';
import { action } from '@storybook/addon-actions';

Expand Down Expand Up @@ -30,8 +29,6 @@ const preview: Preview = {
document.body.classList.remove('spectrum--light', 'spectrum--dark');
document.body.classList.add(isDarkMode ? 'spectrum--dark' : 'spectrum--light');

console.log("my: ", theme)
console.log("adobe ", adobeTheme)
// Use React Spectrum's Provider for additional context
return (
<Provider theme={theme} colorScheme={isDarkMode ? 'dark' : 'light'}>
Expand Down

0 comments on commit af0ab8b

Please sign in to comment.