Skip to content

Commit

Permalink
fix: fix bug of not publishing language files in npm
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasackermn committed Dec 2, 2023
1 parent 848e529 commit 7f52101
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion widget/embedded/src/containers/App/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { WalletType } from '@rango-dev/wallets-shared';

import { I18nManager } from '@rango-dev/ui';
import React, { useContext, useEffect, useState } from 'react';

import { AppRouter } from '../../components/AppRouter';
import { AppRoutes } from '../../components/AppRoutes';
import { I18nManager } from '../../components/I18nManager';
import { WidgetEvents } from '../../components/WidgetEvents';
import { globalFont } from '../../globalStyles';
import { useLanguage } from '../../hooks/useLanguage';
Expand Down
13 changes: 5 additions & 8 deletions widget/ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { Decorator } from '@storybook/react';
import { lightTheme, darkTheme, styled } from '../src/theme';
import { globalCss } from '@stitches/react';
import { I18nManager } from '../src';

// https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters
export const parameters = {
Expand Down Expand Up @@ -56,23 +55,21 @@ export const withTheme: Decorator = (StoryFn, context) => {
switch (theme) {
case 'side-by-side':
return (
<I18nManager>
<>
<ThemeBlock position="left" className={lightTheme}>
<StoryFn />
</ThemeBlock>
<ThemeBlock position="right" className={darkTheme}>
<StoryFn />
</ThemeBlock>
</I18nManager>
</>
);

default:
return (
<I18nManager>
<ThemeBlock position="fill" className={storyTheme}>
<StoryFn />
</ThemeBlock>
</I18nManager>
<ThemeBlock position="fill" className={storyTheme}>
<StoryFn />
</ThemeBlock>
);
}
};
Expand Down
1 change: 0 additions & 1 deletion widget/ui/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './I18nManager';
export * from './Alert';
export * from './BlockchainsChip';
export * from './BottomLogo';
Expand Down

0 comments on commit 7f52101

Please sign in to comment.