fix: modal navbar tab not working

This commit is contained in:
David Ralph
2021-08-29 18:02:25 +01:00
parent 5af8dfac11
commit a00037747b
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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>