const domain = domains.find(domain => isDomainPathActive(domain.path, splat));
return (
- <div className="search-navigator sticky">
+ <div className="layout-page">
<Helmet title={translate('api_documentation.page')} />
- <div className="search-navigator-side search-navigator-side-light" style={{ top: 30 }}>
- <div className="web-api-page-header">
- <Link to="/web_api/">
- <h1>
- {translate('api_documentation.page')}
- </h1>
- </Link>
+ <div className="layout-page-side-outer">
+ <div className="layout-page-side" style={{ top: 30 }}>
+ <div className="layout-page-side-inner">
+ <div className="layout-page-filters">
+ <div className="web-api-page-header">
+ <Link to="/web_api/">
+ <h1>
+ {translate('api_documentation.page')}
+ </h1>
+ </Link>
+ </div>
+
+ <Search
+ showDeprecated={showDeprecated}
+ showInternal={showInternal}
+ onSearch={this.handleSearch}
+ onToggleInternal={this.handleToggleInternal}
+ onToggleDeprecated={this.handleToggleDeprecated}
+ />
+
+ <Menu
+ domains={this.state.domains}
+ showDeprecated={showDeprecated}
+ showInternal={showInternal}
+ searchQuery={searchQuery}
+ splat={splat}
+ />
+ </div>
+ </div>
</div>
-
- <Search
- showDeprecated={showDeprecated}
- showInternal={showInternal}
- onSearch={this.handleSearch}
- onToggleInternal={this.handleToggleInternal}
- onToggleDeprecated={this.handleToggleDeprecated}
- />
-
- <Menu
- domains={this.state.domains}
- showDeprecated={showDeprecated}
- showInternal={showInternal}
- searchQuery={searchQuery}
- splat={splat}
- />
</div>
- <div className="search-navigator-workspace">
- {domain &&
- <Domain
- key={domain.path}
- domain={domain}
- showDeprecated={showDeprecated}
- showInternal={showInternal}
- searchQuery={searchQuery}
- />}
+ <div className="layout-page-main">
+ <div className="layout-page-main-inner">
+ {domain &&
+ <Domain
+ key={domain.path}
+ domain={domain}
+ showDeprecated={showDeprecated}
+ showInternal={showInternal}
+ searchQuery={searchQuery}
+ />}
+ </div>
</div>
</div>
);