Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
refactor(ContractEditor): update props and margin
Browse files Browse the repository at this point in the history
Signed-off-by: irmerk <[email protected]>
  • Loading branch information
jolanglinais committed Dec 20, 2019
1 parent eda6441 commit d2254cb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function Demo() {
TOOLTIP_BACKGROUND: null,
TOOLTIP: null,
TOOLBAR_SHADOW: null,
WIDTH: '600px',
EDITOR_WIDTH: '600px',
};

const demo = <ContractEditor
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"depcheck": "node ./scripts/depcheck.js"
},
"dependencies": {
"@accordproject/markdown-editor": "^0.8.7",
"@accordproject/markdown-editor": "^0.9.0",
"@accordproject/markdown-slate": "^0.9.4",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.7.0",
Expand Down Expand Up @@ -110,4 +110,4 @@
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
]
}
}
}
16 changes: 12 additions & 4 deletions src/ContractEditor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ const editorPropsObject = {
BUTTON_SYMBOL_INACTIVE (string),
BUTTON_SYMBOL_ACTIVE (string),
DROPDOWN_COLOR (string),
HEIGHT (string),
EDITOR_BORDER (string),
EDITOR_BORDER_RADIUS (string),
EDITOR_HEIGHT (string),
EDITOR_MARGIN (string),
EDITOR_SHADOW (string),
EDITOR_WIDTH (string),
TOOLBAR_BACKGROUND (string),
TOOLTIP_BACKGROUND (string),
TOOLTIP (string),
TOOLBAR_SHADOW (string),
WIDTH (string),
}

const givenState = {
Expand Down Expand Up @@ -112,12 +116,16 @@ editorProps = {
BUTTON_SYMBOL_INACTIVE, // (String)
BUTTON_SYMBOL_ACTIVE, // (String)
DROPDOWN_COLOR, // (String)
HEIGHT, // (String)
EDITOR_BORDER, // (String)
EDITOR_BORDER_RADIUS, // (String)
EDITOR_HEIGHT, // (String)
EDITOR_MARGIN, // (String)
EDITOR_SHADOW, // (String)
EDITOR_WIDTH, // (String)
TOOLBAR_BACKGROUND, // (String)
TOOLTIP_BACKGROUND, // (String)
TOOLTIP, // (String)
TOOLBAR_SHADOW, // (String)
WIDTH, // (String)
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/ContractEditor/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ exports[`<ContractEditor /> on initialization renders page correctly 1`] = `
</div>
</div>
<div
class="sc-bxivhb fAbwyP"
class="sc-bxivhb bZdZbF"
>
<div>
<div
Expand Down
5 changes: 3 additions & 2 deletions src/ContractEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ ContractEditor.propTypes = {
DROPDOWN_COLOR: PropTypes.string,
EDITOR_BORDER: PropTypes.string,
EDITOR_BORDER_RADIUS: PropTypes.string,
EDITOR_MARGIN: PropTypes.string,
EDITOR_HEIGHT: PropTypes.string,
EDITOR_SHADOW: PropTypes.string,
HEIGHT: PropTypes.string,
EDITOR_WIDTH: PropTypes.string,
TOOLBAR_BACKGROUND: PropTypes.string,
TOOLTIP_BACKGROUND: PropTypes.string,
TOOLTIP: PropTypes.string,
TOOLBAR_SHADOW: PropTypes.string,
WIDTH: PropTypes.string,
}),
lockText: PropTypes.bool,
readOnly: PropTypes.bool,
Expand Down

0 comments on commit d2254cb

Please sign in to comment.