Skip to content

Commit

Permalink
Support custom panel title
Browse files Browse the repository at this point in the history
  • Loading branch information
thani-sh committed Sep 26, 2016
1 parent e832d4b commit 304aae5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/ui/components/down_panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ class DownPanel extends Component {
};
};

let title = panel.title;
if (typeof title === 'function') {
title = title();
}

return (
<a
href="#"
key={name}
style={tabStyle}
onClick={onClick()}
>
{panel.title}
{title}
</a>
);
}
Expand Down

0 comments on commit 304aae5

Please sign in to comment.