-
{renderMainHeader()}
+
+ {showArchived ? this.renderArchivedHeader() : renderMainHeader()}
+
{this.renderList()}
);
diff --git a/ts/components/SearchResults.md b/ts/components/SearchResults.md
index 8d066bb12..e1c8e1ae5 100644
--- a/ts/components/SearchResults.md
+++ b/ts/components/SearchResults.md
@@ -113,7 +113,9 @@ window.searchResults.messages = [
i18n={util.i18n}
onClickMessage={id => console.log('onClickMessage', id)}
onClickConversation={id => console.log('onClickConversation', id)}
- onStartNewConversation={() => console.log('onStartNewConversation')}
+ onStartNewConversation={(query, options) =>
+ console.log('onStartNewConversation', query, options)
+ }
/>
;
```
@@ -131,7 +133,9 @@ window.searchResults.messages = [
i18n={util.i18n}
onClickMessage={id => console.log('onClickMessage', id)}
onClickConversation={id => console.log('onClickConversation', id)}
- onStartNewConversation={() => console.log('onStartNewConversation')}
+ onStartNewConversation={(query, options) =>
+ console.log('onStartNewConversation', query, options)
+ }
/>
```
@@ -147,7 +151,9 @@ window.searchResults.messages = [
i18n={util.i18n}
onClickMessage={id => console.log('onClickMessage', id)}
onClickConversation={id => console.log('onClickConversation', id)}
- onStartNewConversation={() => console.log('onStartNewConversation')}
+ onStartNewConversation={(query, options) =>
+ console.log('onStartNewConversation', query, options)
+ }
/>
```
@@ -163,7 +169,9 @@ window.searchResults.messages = [
i18n={util.i18n}
onClickMessage={id => console.log('onClickMessage', id)}
onClickConversation={id => console.log('onClickConversation', id)}
- onStartNewConversation={() => console.log('onStartNewConversation')}
+ onStartNewConversation={(query, options) =>
+ console.log('onStartNewConversation', query, options)
+ }
/>
```
diff --git a/ts/components/SearchResults.tsx b/ts/components/SearchResults.tsx
index 4a03f2b96..5314c108a 100644
--- a/ts/components/SearchResults.tsx
+++ b/ts/components/SearchResults.tsx
@@ -16,6 +16,7 @@ export type PropsData = {
conversations: Array