1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/institutional/jwt-url-form/jwt-url-form.stories.js
António Regadas 033b776c0e
[MMI] adds the jwt-url-form component (#18198)
* MMI adds the Jwt dropdown

* MMI prettier

* review fixes

* adds the component

* adds tests and story file

* lint & prettier fix

* prettier fix

* prettier and clean up

* prettier and clean up
2023-03-20 11:55:53 +00:00

25 lines
516 B
JavaScript

import React from 'react';
import JwtUrlForm from '.';
export default {
title: 'Components/Institutional/JwtUrlForm',
component: JwtUrlForm,
args: {
jwtList: ['jwt1', 'jwt2', 'jwt3'],
currentJwt: 'jwt1',
urlInputText: 'url',
apiUrl: 'https://apiurl.io/v1',
jwtInputText: 'some input text',
onJwtChange: () => {
/**/
},
onUrlChange: () => {
/**/
},
},
};
export const DefaultStory = (args) => <JwtUrlForm {...args} />;
DefaultStory.storyName = 'JwtUrlForm';