Skip to content

Commit

Permalink
Fix Chromatic diffs (#30028)
Browse files Browse the repository at this point in the history
  • Loading branch information
umpox authored and davejrt committed Feb 15, 2022
1 parent ca6fff0 commit b50c28b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions client/web/src/components/WebStory.tsx
Expand Up @@ -8,7 +8,7 @@ import { usePrependStyles } from '@sourcegraph/storybook/src/hooks/usePrependSty
import { useTheme } from '@sourcegraph/storybook/src/hooks/useTheme'
// Add root Tooltip for Storybook
// eslint-disable-next-line no-restricted-imports
import { Tooltip } from '@sourcegraph/wildcard'
import { Tooltip, WildcardThemeContext } from '@sourcegraph/wildcard'

import webStyles from '../SourcegraphWebApp.scss'

Expand Down Expand Up @@ -38,14 +38,16 @@ export const WebStory: React.FunctionComponent<WebStoryProps> = ({

return (
<MockedStoryProvider mocks={mocks} useStrictMocking={useStrictMocking}>
<MemoryRouter {...memoryRouterProps}>
<Tooltip />
<Children
{...breadcrumbSetters}
isLightTheme={isLightTheme}
telemetryService={NOOP_TELEMETRY_SERVICE}
/>
</MemoryRouter>
<WildcardThemeContext.Provider value={{ isBranded: true }}>
<MemoryRouter {...memoryRouterProps}>
<Tooltip />
<Children
{...breadcrumbSetters}
isLightTheme={isLightTheme}
telemetryService={NOOP_TELEMETRY_SERVICE}
/>
</MemoryRouter>
</WildcardThemeContext.Provider>
</MockedStoryProvider>
)
}

0 comments on commit b50c28b

Please sign in to comment.