mirror of
https://github.com/mue/mue.git
synced 2026-07-19 06:54:10 +02:00
perf: new date picker and add purecomponent to more things
This commit is contained in:
@@ -92,4 +92,4 @@ function Tab(props) {
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Tab);
|
||||
export default React.memo(Tab);
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class Tabs extends React.PureComponent {
|
||||
{this.props.children.map((tab, index) => (
|
||||
<Tab
|
||||
currentTab={this.state.currentTab}
|
||||
key={tab.props.label || index}
|
||||
key={index}
|
||||
label={tab.props.label}
|
||||
onClick={(nextTab) => this.onClick(nextTab, tab.props.name)}
|
||||
navbar={this.props.navbar || false}
|
||||
|
||||
Reference in New Issue
Block a user