1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Add connected-sites component to Storybook (#11415)

* connectd-sites

* fix image path for storybook

* lintfixd, namechange
This commit is contained in:
Etienne Dusseault 2021-08-30 17:56:03 -05:00 committed by GitHub
parent 2996163770
commit 7b4aac7755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 0 deletions

BIN
.storybook/images/UNI.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -562,6 +562,12 @@ const state = {
"icon": "https://metamask.github.io/test-dapp/metamask-fox.svg", "icon": "https://metamask.github.io/test-dapp/metamask-fox.svg",
"lastUpdated": 1620723443380, "lastUpdated": 1620723443380,
"host": "metamask.github.io" "host": "metamask.github.io"
},
"https://app.uniswap.org": {
"name": "Uniswap",
"icon": "./UNI.png",
"lastUpdated": 1620723443380,
"host": "app.uniswap.org"
} }
}, },
"threeBoxSyncingAllowed": false, "threeBoxSyncingAllowed": false,

View File

@ -0,0 +1,19 @@
import React from 'react';
import ConnectedSites from '.';
export default {
title: 'Connected Sites',
};
const PageSet = ({ children }) => {
return children;
};
export const ConnectedSitesComponent = () => {
return (
<PageSet>
<ConnectedSites />
</PageSet>
);
};