show sort control for signed out users

This commit is contained in:
igoradamenko
2018-05-12 23:17:29 +03:00
parent eee525abfc
commit b85ca4b488
4 changed files with 18 additions and 17 deletions
@@ -1,6 +1,7 @@
.auth-panel__column {
&:nth-child(1) {
overflow: hidden;
font-weight: 700;
text-overflow: ellipsis;
}
@@ -1,4 +1,9 @@
.auth-panel_logged-in {
font-size: 12px;
font-weight: 400;
.auth-panel__column {
&:first-child {
font-weight: 400;
}
}
}
+11 -15
View File
@@ -88,21 +88,17 @@ export default class AuthPanel extends Component {
{user.admin && ' • '}
{
!!user.id && (
<span className="auth-panel__sort">
Sort by
{' '}
<select className="auth-panel__select" onChange={this.onSortChange}>
{
sortArray.map(sort => (
<option value={sort.value} selected={sort.selected}>{sort.label}</option>
))
}
</select>
</span>
)
}
<span className="auth-panel__sort">
Sort by
{' '}
<select className="auth-panel__select" onChange={this.onSortChange}>
{
sortArray.map(sort => (
<option value={sort.value} selected={sort.selected}>{sort.label}</option>
))
}
</select>
</span>
</div>
</div>
);
@@ -2,6 +2,5 @@
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 700;
line-height: 16px;
}