Skip to content

Commit 9085710

Browse files
author
Jessica Peng
committedFeb 9, 2022
cleaning up
1 parent 669814b commit 9085710

File tree

9 files changed

+12
-20
lines changed

9 files changed

+12
-20
lines changed
 

‎src/components/MewChart/MewChart.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: 'MewChart',
1111
extends: Line,
1212
props: {
1313
/**
14-
* Chart Data - takes in x and y attribute, i.e, { x: [], y: []}
14+
* Chart Data - takes a x and y attribute, i.e, { x: [], y: []}
1515
*/
1616
data: {
1717
type: Object,

‎stories/GlobalStorybook.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#story--mewsuperbutton--content-slot-button,
88
#story--mewbanner--mew-banner,
99
#story--mewwarningsheet--mew-warning-sheet
10-
#story--mewblockie--mew-blockie,
1110
#story--mewtoast--mew-toast,
1211
#story--mewstepper--mew-stepper,
1312
#story--mewtoggle--mew-toggle,
@@ -49,7 +48,8 @@
4948
#story--mewchart--mew-chart,
5049
#story--mewmenu--mew-menu,
5150
#story--mewprogressbar--mew-progress-bar,
52-
#story--mewswitch--mew-switch
51+
#story--mewswitch--mew-switch,
52+
#story--mewblockie--mew-blockie
5353
{
5454
.v-application {
5555
height: 80px;

‎stories/MewBadge/MewBadge.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import './../GlobalStorybook.scss'
77
`<mew-badge />`
88

99
## Overview
10-
MEW Badge is used to display quick information. It is mainly used for mew-notification at the moment. There are 5 different types ('in', 'out', 'swap, 'error', 'warning').
10+
MEW Badge is used to display quick information. It is mainly used for mew-notification at the moment. There are 5 different types (in, out, swap, error, warning).
1111
Each one displays a different color for better readability. You can set the title by passing a string to **badgeTitle**.
1212

1313

‎stories/MewBanner/MewBanner.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if the image is not passed, the default MEW picture will be displayed.
1414
There is also a **textObj** prop that is used to display text on the banner. It contains the following attributes: <br />
1515
**title**: this value is used to display the Dapp’s Name. <br />
1616
**subtext**: this value is used to display a short sentence description about the dapp. <br />
17-
**exit**: this value is used to replace the action button text. The default value is Exit Dapp. <br />
17+
**exit**: this value is used to replace the action button text. The default value is 'Exit Dapp'. <br />
1818
<b>Codepen</b>: <a target="_blank" href="https://codepen.io/gesseekur/pen/JjGOxBa" id="Bar">Click here</a>
1919

2020
## Props

‎stories/MewBlockie/MewBlockie.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { Story, Preview, Props } from '@storybook/addon-docs/blocks';
33
import MewBlockie from '@/components/MewBlockie/MewBlockie.vue';
44
import './../GlobalStorybook.scss'
55

6-
# MewBlockie
7-
The MewBlockie component is used to display the circular Ethereum address identicon, which is used to identify that the user is using or sending to the correct address. This component has several props. The correct ethereum address string prop is required in order to display the information. The currency prop is used to show a small currency icon within the identicon.
6+
# MEW Blockie
7+
The mew-blockie component is used to display the circular Ethereum address identicon,
8+
which is used to identify that the user is using or sending to the correct address. This component has several props. The correct ethereum address string prop is required in order to display the information. The currency prop is used to show a small currency icon within the identicon.
89
An icon comes with predefined icon sizes, which can be edited.
9-
<p>*Need: Infographic*</p>
1010

1111
## Props
1212
<Props of={MewBlockie} />

‎stories/MewBlockie/MewBlockie.stories.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
decorators: [withKnobs]
1919
};
2020

21-
export const mewBlockie = () => ({
21+
export const MEWBlockie = () => ({
2222
components: { MewBlockie },
2323
props: {
2424
address: {

‎stories/MewExpandPanel/MewExpandPanel.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The mew-expand-panel component provides a way to organize and display different
1111
The color theme is controlled by the **isGreyTheme** prop. The **isAccordion** prop removes the margins around the panels so it will share one border if passed true.
1212
You can control which panel is expanded by passing an array of the indexes to the **idxToExpand** prop. Each panel body is customizable and is set by passing a slot, **panelBody** + **the panel number** (index + 1) - i.e. *panelBody1*.
1313
You can set the header title of each panel by passing an obj with the **name** attribute to the **panelItems** array. This will also let the component know how many panels there are. If you would like text next to the toggle button,
14-
then pass a string to the **toggleTitle** attribute in the same panel obj.
14+
then pass a string to the **toggleTitle** attribute in the same panelItems obj.
1515
<Props of={MewExpandPanel} />
1616
<Preview><Story id="mewexpandpanel--mew-expand-panel" /></Preview>
1717

‎stories/MewOverlay/MewOverlay.stories.js

-8
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ const sizes = {
3131
}
3232

3333
export const MEWOverlay = () => ({
34-
data() {
35-
return {
36-
showsOverlay: false
37-
}
38-
},
3934
components: { MewOverlay },
4035
props: {
4136
showOverlay: {
@@ -64,9 +59,6 @@ export const MEWOverlay = () => ({
6459
enableDarkMode(newVal) {
6560
this.$vuetify.theme.dark = newVal === true ? true : false;
6661
},
67-
showOverlay(newVal) {
68-
this.showsOverlay = newVal;
69-
}
7062
},
7163
methods: {
7264
close() {

‎stories/MewSelect/MewSelect.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import './../GlobalStorybook.scss'
99
## Overview
1010
MEW select replaces Vuetify's v-select with acceptable MEW theme options. It is used as a way to collect
1111
information from a list of options. There are two main styles to this component, one which is the default style
12-
and the other which will show more customized options like adding a filter or icon. This is enabled by the
13-
**isCustom** prop. This style is mainly used to display tokens in the wallet pages.
12+
and the other one which will show more customized options like adding a filter input or icon. This is enabled by the
13+
**isCustom** prop. This style is mainly used to display tokens on the wallet pages.
1414

1515
## Props
1616
<Props of={MewSelect} />

0 commit comments

Comments
 (0)
Please sign in to comment.