Skip to content

Commit

Permalink
Merge pull request #42 from kadirahq/panel-title
Browse files Browse the repository at this point in the history
Dynamic panel titles
  • Loading branch information
Muhammed Thanish authored Sep 27, 2016
2 parents e832d4b + 304aae5 commit ae11e01
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 ae11e01

Please sign in to comment.