Skip to content

Commit 7cb0937

Browse files
piotr pietruszewskipi0trpietruszewski
authored andcommitted
fix: fixed help center types
1 parent 88b2877 commit 7cb0937

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/src/main/java/com/intercom/reactnative/IntercomHelpCenterHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static ReadableMap parseHelpCenterCollectionsContentToReadableMap(HelpCen
6868

6969
public static ReadableMap parseHelpCenterSectionToReadableMap(HelpCenterSection helpCenterSection) {
7070
WritableMap section = Arguments.createMap();
71-
section.putString("id", helpCenterSection.getTitle());
71+
section.putString("title", helpCenterSection.getTitle());
7272

7373

7474
ReadableArray articles = parseArticlesToReadableArray(helpCenterSection.getHelpCenterArticles());

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ export type Company = {
7878
};
7979

8080
export type HelpCenterArticle = { it: string; title: string };
81-
export type HelpCenterSection = { name: string; articles: HelpCenterArticle };
81+
export type HelpCenterSection = { title: string; articles: HelpCenterArticle };
8282
export type HelpCenterCollectionItem = {
8383
id: string;
8484
title: string;
8585
summary: string;
8686
};
8787
export type HelpCenterCollectionContent = {
8888
id: string;
89-
name: string;
89+
title: string;
9090
summary: string;
9191
articles: HelpCenterArticle[];
9292
sections: HelpCenterSection[];

0 commit comments

Comments
 (0)