Skip to content

Commit

Permalink
fix: add back theme provider for ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed Apr 30, 2019
1 parent a600613 commit 3eac920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/gatsby-theme-carbon/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import ThemeProvider from './src/components/ThemeProvider';

export const wrapRootElement = ({ element }) => (
<ThemeProvider>{element}</ThemeProvider>
);

0 comments on commit 3eac920

Please sign in to comment.