mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
Add first time flow components to Storybook (#11655)
* end of first time flow * metametrics first time flow * select-action * welcome
This commit is contained in:
parent
0a472a440a
commit
28708e3a2e
10
ui/pages/first-time-flow/end-of-flow/end-of-flow.stories.js
Normal file
10
ui/pages/first-time-flow/end-of-flow/end-of-flow.stories.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import EndOfFlowScreen from './end-of-flow.component';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'First Time Flow',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const EndOfFlowComponent = () => {
|
||||||
|
return <EndOfFlowScreen />;
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { action } from '@storybook/addon-actions';
|
||||||
|
import MetaMetricsOptIn from './metametrics-opt-in.component';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'First Time Flow',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const MetaMetricsOptInComponent = () => {
|
||||||
|
return (
|
||||||
|
<MetaMetricsOptIn
|
||||||
|
setParticipateInMetaMetrics={action('Participating in MetaMetrics')}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import SelectAction from './select-action.component';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'First Time Flow',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const SelectActionComponent = () => {
|
||||||
|
return <SelectAction />;
|
||||||
|
};
|
10
ui/pages/first-time-flow/welcome/welcome.stories.js
Normal file
10
ui/pages/first-time-flow/welcome/welcome.stories.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Welcome from './welcome.component';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'First Time Flow',
|
||||||
|
};
|
||||||
|
|
||||||
|
export const WelcomeComponent = () => {
|
||||||
|
return <Welcome />;
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user