Fix font PropTypes

This commit is contained in:
Mikael Sand
2017-07-23 22:55:39 +03:00
parent fc61c9dad2
commit 80b9ff9d57
6 changed files with 103 additions and 31 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ export default class extends Shape {
static propTypes = {
...pathProps,
...fontProps,
dx: numberProp,
dy: numberProp,
dx: PropTypes.string,
dy: PropTypes.string,
};
static childContextTypes = {
+2 -2
View File
@@ -13,8 +13,8 @@ export default class extends Shape {
static propTypes = {
...pathProps,
...fontProps,
dx: numberProp,
dy: numberProp,
dx: PropTypes.string,
dy: PropTypes.string,
};
static childContextTypes = {
+1 -1
View File
@@ -19,7 +19,7 @@ export default class extends Shape {
href: PropTypes.string.isRequired,
method: PropTypes.oneOf(['align', 'stretch']),
spacing: PropTypes.oneOf(['auto', 'exact']),
startOffset: numberProp
startOffset: PropTypes.string
};
render() {