From 412717ce0e01c278671e3d0bf1698c3c58f73fb6 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 8 Jul 2016 17:33:39 -0700 Subject: [PATCH] tabs: transform to `Component` for consistency --- app/tabs.js | 71 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 29 deletions(-) diff --git a/app/tabs.js b/app/tabs.js index 7ca0508a..39ecaa46 100644 --- a/app/tabs.js +++ b/app/tabs.js @@ -1,35 +1,48 @@ import React from 'react'; import classes from 'classnames'; -export default function ({ data = [], borderColor, active, activeMarkers = [], onChange, onClose }) { - return ; +export default class Tabs extends React.Component { + + render () { + const { + data = [], + borderColor, + active, + activeMarkers = [], + onChange, + onClose + } = this.props; + + return ; + } + } function onClick (i, onChange, active) {