GetPrivateMessagesForm,
PrivateMessagesResponse,
SortType,
- SearchType,
GetSiteResponse,
Comment,
CommentResponse,
UserView,
PrivateMessageResponse,
WebSocketJsonResponse,
- SearchForm,
} from '../interfaces';
import {
wsJsonToRes,
<div
className={`${!this.state.expanded && 'collapse'} navbar-collapse`}
>
- <ul class="navbar-nav mr-auto">
+ <ul class="navbar-nav my-2 mr-auto">
<li class="nav-item">
<Link
class="nav-link"
{!this.context.router.history.location.pathname.match(
/^\/search/
) && (
- <div class="nav-item my-2">
- <form
- class="form-inline"
- onSubmit={linkEvent(this, this.handleSearchSubmit)}
+ <form
+ class="form-inline"
+ onSubmit={linkEvent(this, this.handleSearchSubmit)}
+ >
+ <input
+ class={`form-control mr-0 search-input ${
+ this.state.toggleSearch ? 'show-input' : 'hide-input'
+ }`}
+ onInput={linkEvent(this, this.handleSearchParam)}
+ value={this.state.searchParam}
+ ref={this.searchTextField}
+ type="text"
+ placeholder={i18n.t('search')}
+ onBlur={linkEvent(this, this.handleSearchBlur)}
+ ></input>
+ <button
+ name="search-btn"
+ onClick={linkEvent(this, this.handleSearchBtn)}
+ class="btn btn-link"
+ style="color: var(--gray)"
>
- <input
- class={`form-control mr-0 search-input ${
- this.state.toggleSearch ? 'show-input' : 'hide-input'
- }`}
- onInput={linkEvent(this, this.handleSearchParam)}
- value={this.state.searchParam}
- ref={this.searchTextField}
- type="text"
- placeholder={i18n.t('search')}
- onBlur={linkEvent(this, this.handleSearchBlur)}
- ></input>
- <button
- name="search-btn"
- onClick={linkEvent(this, this.handleSearchBtn)}
- class="btn btn-link"
- style="color: var(--gray)"
- >
- <svg class="icon">
- <use xlinkHref="#icon-search"></use>
- </svg>
- </button>
- </form>
- </div>
+ <svg class="icon">
+ <use xlinkHref="#icon-search"></use>
+ </svg>
+ </button>
+ </form>
)}
<ul class="navbar-nav my-2">
{this.canAdmin && (
</Link>
</li>
)}
- {this.state.isLoggedIn ? (
- <>
+ </ul>
+ {this.state.isLoggedIn ? (
+ <>
+ <ul class="navbar-nav my-2">
<li className="nav-item">
<Link class="nav-link" to="/inbox" title={i18n.t('inbox')}>
<svg class="icon">
)}
</Link>
</li>
+ </ul>
+ <ul class="navbar-nav">
<li className="nav-item">
<Link
class="nav-link"
</span>
</Link>
</li>
- </>
- ) : (
- <Link
- class="nav-link"
- to="/login"
- title={i18n.t('login_sign_up')}
- >
- {i18n.t('login_sign_up')}
- </Link>
- )}
- </ul>
+ </ul>
+ </>
+ ) : (
+ <ul class="navbar-nav my-2">
+ <li className="nav-item">
+ <Link
+ class="nav-link"
+ to="/login"
+ title={i18n.t('login_sign_up')}
+ >
+ {i18n.t('login_sign_up')}
+ </Link>
+ </li>
+ </ul>
+ )}
</div>
</nav>
);