From 20eeaa87918d08ad5c250b2208116fcb50a28ccf Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Tue, 28 Feb 2023 14:56:53 +0100 Subject: [PATCH] add provider to web and storybook --- apps/vite/src/main.tsx | 5 ++++- packages/components/.storybook/preview.tsx | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/vite/src/main.tsx b/apps/vite/src/main.tsx index 318f382c..e52e12b6 100644 --- a/apps/vite/src/main.tsx +++ b/apps/vite/src/main.tsx @@ -6,6 +6,7 @@ import '@tamagui/font-inter/css/700.css' import React from 'react' +import { Provider } from '@status-im/components' import { createRoot } from 'react-dom/client' import App from './app' @@ -14,6 +15,8 @@ const root = document.getElementById('root') as HTMLElement createRoot(root).render( - + + + ) diff --git a/packages/components/.storybook/preview.tsx b/packages/components/.storybook/preview.tsx index 7056e3e4..8e419500 100644 --- a/packages/components/.storybook/preview.tsx +++ b/packages/components/.storybook/preview.tsx @@ -1,6 +1,5 @@ import React from 'react' -import { TamaguiProvider } from '@tamagui/core' -import { config } from '../src' +import { Provider } from '../src' import { Parameters, Decorator } from '@storybook/react' import './reset.css' @@ -17,9 +16,9 @@ export const parameters: Parameters = { const withThemeProvider: Decorator = (Story, _context) => { return ( - + - + ) } export const decorators = [withThemeProvider]