mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
4ce6487160
* Add beta home banner to home screen * Move the beta home notification to the app-header * Updates to formatting * Add beta home banner to home screen * Move the beta home notification to the app-header * Updates to formatting * Update ui/components/app/app-header/index.scss Co-authored-by: George Marshall <george.marshall@consensys.net> * Update ui/components/app/app-header/index.scss Co-authored-by: George Marshall <george.marshall@consensys.net> * Update ui/components/app/app-header/index.scss Co-authored-by: George Marshall <george.marshall@consensys.net> * Move banner to top of page * Move to own folder, update styles * Swith to BOX component * Address feedback * Add tests * Update name of component * Fix tests * Fix proptype errors * Fixups * Remove unrelated changes * Remove unwanted string changes * Update beta component name and text * Update mock data Co-authored-by: George Marshall <george.marshall@consensys.net>
25 lines
589 B
JavaScript
25 lines
589 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import configureStore from '../../../store/store';
|
|
import BetaHeader from '.';
|
|
|
|
const store = configureStore({
|
|
...testData,
|
|
metamask: { ...testData.metamask, isUnlocked: true, showBetaHeader: true },
|
|
});
|
|
|
|
export default {
|
|
title: 'Components/App/BetaHeader',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
id: __filename,
|
|
};
|
|
|
|
export const DefaultStory = () => (
|
|
<>
|
|
<BetaHeader />
|
|
</>
|
|
);
|
|
|
|
DefaultStory.storyName = 'Default';
|