Fix references to props

This commit is contained in:
Nathan Bierema 2021-06-10 21:29:46 -04:00
parent aadbe15472
commit 6ef617ca2b

View File

@ -26,9 +26,9 @@ export default class Tabs<P> extends Component<TabsProps<P>> {
this.props.onClick(e.currentTarget.value); this.props.onClick(e.currentTarget.value);
}; };
renderTabs(props: TabsProps<P>) { renderTabs() {
const tabs = props.tabs; const tabs = this.props.tabs;
const selected = props.selected; const selected = this.props.selected;
return tabs.map((tab, i) => { return tabs.map((tab, i) => {
let isSelected; let isSelected;