mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
fix: modal navbar tab not working
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
KeyboardAltOutlined as Keybinds
|
||||
} from '@material-ui/icons';
|
||||
|
||||
function Tab({ currentTab, label, navbarTab, onClick }) {
|
||||
function Tab({ label, currentTab, onClick, navbarTab }) {
|
||||
let className = 'tab-list-item';
|
||||
if (currentTab === label) {
|
||||
className += ' tab-list-active';
|
||||
@@ -90,4 +90,4 @@ function Tab({ currentTab, label, navbarTab, onClick }) {
|
||||
);
|
||||
}
|
||||
|
||||
export default memo(Tab);
|
||||
export default memo(Tab);
|
||||
@@ -45,7 +45,7 @@ export default class Tabs extends PureComponent {
|
||||
key={index}
|
||||
label={tab.props.label}
|
||||
onClick={(nextTab) => this.onClick(nextTab, tab.props.name)}
|
||||
navbar={this.props.navbar || false}
|
||||
navbarTab={this.props.navbar || false}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user