Skip to content

Commit 6146154

Browse files
committed
Update CHANGELOG.md
1 parent 2af9a96 commit 6146154

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Fixes
1515

1616
- Fixed discrete tooltip being clipped by loading overlay when stake pools are adjusted ([PR 2902](https://github.com/input-output-hk/daedalus/pull/2902))
17+
- Fix warning sign displayed when recommend decimals is zero ([PR 2905](https://github.com/input-output-hk/daedalus/pull/2905))
1718

1819
## 4.9.0
1920

tests/_utils/TestBed.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
import React, { ReactElement } from 'react';
22
import { IntlProvider } from 'react-intl';
3-
import { Provider as MobxProvider } from 'mobx-react';
43
import { render } from "@testing-library/react";
4+
import { ThemeProvider } from 'react-polymorph/lib/components/ThemeProvider';
5+
import { SimpleSkins } from 'react-polymorph/lib/skins/simple';
6+
import { SimpleDefaults } from 'react-polymorph/lib/themes/simple';
57

68
import { BrowserLocalStorageBridge, DiscreetModeFeatureProvider } from '../../source/renderer/app/features';
79
import translations from '../../source/renderer/app/i18n/locales/en-US.json';
8-
import StoryDecorator from '../../storybook/stories/_support/StoryDecorator';
10+
import { daedalusTheme } from '../../source/renderer/app/themes/daedalus';
11+
import { themeOverrides } from '../../source/renderer/app/themes/overrides';
912

10-
const TestBed = ({ children }: { children: React.ReactNode }) => (
11-
<StoryDecorator>
12-
<MobxProvider>
13+
const TestBed = ({ children }: { children: ReactElement }) => (
14+
<ThemeProvider
15+
theme={daedalusTheme}
16+
skins={SimpleSkins}
17+
variables={SimpleDefaults}
18+
themeOverrides={themeOverrides}
19+
>
1320
<IntlProvider locale="en-US" messages={translations}>
1421
<BrowserLocalStorageBridge>
1522
<DiscreetModeFeatureProvider>
1623
{children}
1724
</DiscreetModeFeatureProvider>
1825
</BrowserLocalStorageBridge>
1926
</IntlProvider>
20-
</MobxProvider>
21-
</StoryDecorator>
27+
</ThemeProvider>
2228
);
2329

2430
const createTestBed = (component: ReactElement) => {

0 commit comments

Comments
 (0)