1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/ui/components/multichain/product-tour-popover/product-tour-popover.stories.js
Nidhi Kumari 0efd00b755
UX Multichain: Added product tour component (#18571)
* adding product tour component

* updated control for prevIcon

* updated app-header and product tour

* updated css

* updated message strings

* updated tests

* removed console statement

* added selector for product tour

* updated test

* updated test

* updated state with steps

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.js

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* Update ui/components/multichain/product-tour-popover/product-tour-popover.scss

Co-authored-by: Garrett Bear <gwhisten@gmail.com>

* fixed lint errors

* updated lint error

* added changes for rtl support

* added changes for rtl support

* fixed lint errors

* Some suggestions (#18676)

* updated messages and indentation

* fixed popup close on my final step

* updated rtl classname condition

---------

Co-authored-by: Garrett Bear <gwhisten@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-04-21 20:58:18 +05:30

55 lines
1.0 KiB
JavaScript

import React from 'react';
import { ProductTour } from './product-tour-popover';
export default {
title: 'Components/Multichain/ProductTour',
component: ProductTour,
argTypes: {
prevIcon: {
control: 'boolean',
},
title: {
control: 'text',
},
description: {
control: 'text',
},
currentStep: {
control: 'text',
},
totalSteps: {
control: 'text',
},
positionObj: {
control: 'text',
},
onClick: {
action: 'onClick',
},
onHide: {
action: 'onHide',
},
closeMenu: {
action: 'closeMenu',
},
},
args: {
prevIcon: true,
title: 'Permissions',
description: 'Find your connected accounts and manage permissions here.',
currentStep: '1',
totalSteps: '3',
},
};
const Template = (args) => {
return <ProductTour {...args} />;
};
export const DefaultStory = Template.bind({});
export const CustomPopoverTipPosition = Template.bind({});
CustomPopoverTipPosition.args = {
positionObj: '80%',
};