diff --git a/website/src/ui/Box.js b/website/src/ui/Box.js index dd4b644..faed3c7 100644 --- a/website/src/ui/Box.js +++ b/website/src/ui/Box.js @@ -2,8 +2,6 @@ import Radium from 'radium' import PropTypes from 'prop-types' import React, { Component } from 'react' -// TODO: Refactor this to allow setting each border property separately - class Box extends Component { static propTypes = { borderTop: PropTypes.object, @@ -13,6 +11,7 @@ class Box extends Component { border: PropTypes.object, radius: PropTypes.number, background: PropTypes.string, + style: PropTypes.object, children: PropTypes.node, } @@ -20,7 +19,7 @@ class Box extends Component { let { children, background, borderTop, borderBottom, borderLeft, borderRight, - border, radius } = this.props + border, radius, style } = this.props const flatten = (border) => { if (!border) { return null @@ -44,9 +43,10 @@ class Box extends Component { return (
{children}
diff --git a/website/src/ui/HeaderButton.js b/website/src/ui/HeaderButton.js index ab5b82a..00126f6 100644 --- a/website/src/ui/HeaderButton.js +++ b/website/src/ui/HeaderButton.js @@ -26,7 +26,7 @@ class HeaderButton extends Component { } render() { - const size = sizeInfo.headerHeight - sizeInfo.headerBorderWidth + const size = sizeInfo.headerHeight - 2 * sizeInfo.headerBorderWidth const { onClick, icon, image } = this.props let content = null diff --git a/website/src/ui/List.js b/website/src/ui/List.js index ecd2207..5b07664 100644 --- a/website/src/ui/List.js +++ b/website/src/ui/List.js @@ -6,32 +6,26 @@ import { sizeInfo, colorInfo, fontInfo } from './style' class List extends Component { static propTypes = { - children: PropTypes.node + children: PropTypes.node, + // data: PropTypes.array, + // render: PropTypes.func, } render() { const { children } = this.props return ( -
- -
- {children} -
-
-
+ + {children} + ) } } @@ -48,7 +42,7 @@ List.Item = Radium(class ListItem extends Component { return (
{children}