mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
789779f4d5
* Add new snap header and footer to snap install * Add new snap header and footer to snap result and snap update * Fix loading state * Fix lint * Add required scrolling * Adjust avatar component * Apply new headers and footers to snaps confirmations * Rename previous SnapAuthorship component to SnapAuthorshipExpanded * Fix lint * Fix font weight * Fix fencing * Fix a test * Fix lint after rebase * Fix E2E * Fix locale lint * Fix another E2E * Fix test ID * Address PR comments * Better scroll button centering * Address design comments * Fix unit test * Fix E2Es
65 lines
1.1 KiB
JavaScript
65 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
import SnapResult from '.';
|
|
|
|
export default {
|
|
title: 'Pages/Snaps/SnapResult',
|
|
|
|
component: SnapResult,
|
|
argTypes: {},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <SnapResult {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
request: {
|
|
metadata: {
|
|
id: 'foo',
|
|
},
|
|
},
|
|
requestState: {
|
|
loading: false,
|
|
},
|
|
targetSubjectMetadata: {
|
|
origin: 'npm:@metamask/test-snap-bip44',
|
|
},
|
|
};
|
|
|
|
export const LoadingStory = (args) => <SnapResult {...args} />;
|
|
|
|
LoadingStory.storyName = 'Loading';
|
|
|
|
LoadingStory.args = {
|
|
request: {
|
|
metadata: {
|
|
id: 'foo',
|
|
},
|
|
},
|
|
requestState: {
|
|
loading: true,
|
|
},
|
|
targetSubjectMetadata: {
|
|
origin: 'npm:@metamask/test-snap-bip44',
|
|
},
|
|
};
|
|
|
|
export const ErrorStory = (args) => <SnapResult {...args} />;
|
|
|
|
ErrorStory.storyName = 'Error';
|
|
|
|
ErrorStory.args = {
|
|
request: {
|
|
metadata: {
|
|
id: 'foo',
|
|
},
|
|
},
|
|
requestState: {
|
|
loading: false,
|
|
error: 'foo',
|
|
},
|
|
targetSubjectMetadata: {
|
|
origin: 'npm:@metamask/test-snap-bip44',
|
|
},
|
|
};
|