Skip to content

Commit

Permalink
fix(css): fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyashu committed Aug 2, 2018
1 parent 9aad782 commit 2708f41
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Login/Login.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ describe('the Login component', () => {
/>
</StaticRouter>,
);
expect($vdom.find(".login-page__entries")).toHaveLength(testProps.providers.length);
expect($vdom.find('.login-page__entries')).toHaveLength(testProps.providers.length);
});
});
10 changes: 6 additions & 4 deletions src/components/layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ const Footer = ({ dictIcons, dictionaryVersion, apiVersion }) => (
[{ name: 'Dictionary', version: dictionaryVersion },
{ name: 'Submission', version: apiVersion },
{ name: 'Portal', version: portalVersion }].map(
item => (<div className="footer__version" key={item.name}>
<div className="h4-typo footer__version-name">{item.name}</div>
<div className="body-typo footer__version-value">v{item.version}</div>
</div>),
item => (
<div className="footer__version" key={item.name}>
<div className="h4-typo footer__version-name">{item.name}</div>
<div className="body-typo footer__version-value">v{item.version}</div>
</div>
),
)
}
</div>
Expand Down
16 changes: 9 additions & 7 deletions src/components/layout/TopBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class TopBar extends Component {
this.props.topItems.map(
item => (
(item.link.startsWith('http')) ?
<a className="top-bar__link"
<a
className="top-bar__link"
key={item.link}
href={item.link}
target="_blank"
Expand Down Expand Up @@ -53,12 +54,13 @@ class TopBar extends Component {
)
}
{
this.props.user.username !== undefined && <Link className="top-bar__link" to="#" onClick={this.props.onLogoutClick}>
<TopIconButton
dictIcons={this.props.dictIcons}
item={{ name: this.props.user.username, icon: 'exit' }}
/>
</Link>
this.props.user.username !== undefined
&& <Link className="top-bar__link" to="#" onClick={this.props.onLogoutClick}>
<TopIconButton
dictIcons={this.props.dictIcons}
item={{ name: this.props.user.username, icon: 'exit' }}
/>
</Link>
}
</nav>
</header>
Expand Down

0 comments on commit 2708f41

Please sign in to comment.