1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Correction UiTab

This commit is contained in:
Paul Rosset
2017-12-01 19:03:04 +00:00
parent c86e451198
commit d1e5781c24
4 changed files with 13 additions and 17 deletions

View File

@@ -111,7 +111,7 @@ class Preferences extends React.Component {
const navButtons = tabs.map((tab) => {
const isActive = this.state.currentTab === tab.target
const isOk = typeof tab[tab.label] !== "undefined" && tab[tab.label] !== null
const isOk = typeof tab[tab.label] !== 'undefined' && tab[tab.label] !== null
return (
<button styleName={isActive
? 'nav-button--active'
@@ -123,9 +123,7 @@ class Preferences extends React.Component {
<span styleName='nav-button-label'>
{tab.label}
</span>
{isOk && tab.label === tab[tab.label].tab
? <p styleName={`saving--${tab[tab.label].type}`}>{tab[tab.label].message}</p>
: null}
{isOk && tab.label === tab[tab.label].tab ? <p styleName={`saving--${tab[tab.label].type}`}>{tab[tab.label].message}</p> : null}
</button>
)
})