diff --git a/README.md b/README.md index e1bc94c..1f47385 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ This is the wrapper component that creates the infinite vertical timeline | -------------- | ------ | ---------------------------------------- | | className | string | The css class name of timeline container| | style | object | Override inline styles of timeline container | -| bubblePosition | string | Display the timeline at `right` or `left`. Default: `left` | +| orientatoin | string | Display the timeline on `right` or `left`. Default: `left` | ### TimelineEvent diff --git a/components/Timeline.js b/components/Timeline.js index 29b9139..e4f7a59 100644 --- a/components/Timeline.js +++ b/components/Timeline.js @@ -4,9 +4,9 @@ import s from './styles' class Timeline extends Component { render () { - const { bubblePosition = 'left', children, style = {}, ...otherProps } = this.props - const childrenWithProps = React.Children.map(children, child => React.cloneElement(child, { bubblePosition })) - const leftOrRight = (bubblePosition === 'right') ? {...s['containerBefore--right']} : {...s['containerBefore--left']} + const { orientation = 'left', children, style = {}, ...otherProps } = this.props + const childrenWithProps = React.Children.map(children, child => React.cloneElement(child, { orientation })) + const leftOrRight = (orientation === 'right') ? {...s['containerBefore--right']} : {...s['containerBefore--left']} return (
Subject: Any updates?
++ Like we talked, you said that you would share the shipment details? This is an urgent order and so I am + losing patience. Can you expedite the process and pls do share the details asap. Consider this a gentle + reminder if you are on track already! +
+- Maya
+