fix: modal and notes style fixes

This commit is contained in:
David Ralph
2021-04-02 13:51:22 +01:00
parent 5947aa25fd
commit d0934d8e6d
5 changed files with 17 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ export default class Tabs extends React.PureComponent {
}
return (
<span className='tabs'>
<>
<ul className={className}>
{optionsText}
{this.props.children.map((tab) => {
@@ -48,12 +48,15 @@ export default class Tabs extends React.PureComponent {
<div className={tabClass}>
<ErrorBoundary>
{this.props.children.map((child) => {
if (child.props.label !== this.state.currentTab) return undefined;
if (child.props.label !== this.state.currentTab) {
return undefined;
}
return child.props.children;
})}
</ErrorBoundary>
</div>
</span>
</>
);
}
}