From 346b00defd9f3f67b390814ded02c3027defdef0 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Wed, 23 Sep 2020 18:47:00 +0200 Subject: [PATCH] Fix group accordions expanding incorrectly --- src/components/Lists/PlanexGroups/GroupListAccordion.tsx | 2 -- src/screens/Planex/GroupSelectionScreen.tsx | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/components/Lists/PlanexGroups/GroupListAccordion.tsx b/src/components/Lists/PlanexGroups/GroupListAccordion.tsx index e403ebf..75617b2 100644 --- a/src/components/Lists/PlanexGroups/GroupListAccordion.tsx +++ b/src/components/Lists/PlanexGroups/GroupListAccordion.tsx @@ -34,7 +34,6 @@ type PropsType = { onGroupPress: (data: PlanexGroupType) => void; onFavoritePress: (data: PlanexGroupType) => void; currentSearchString: string; - height: number; theme: ReactNativePaper.Theme; }; @@ -101,7 +100,6 @@ class GroupListAccordion extends React.Component { diff --git a/src/screens/Planex/GroupSelectionScreen.tsx b/src/screens/Planex/GroupSelectionScreen.tsx index e0c36ba..7f83266 100644 --- a/src/screens/Planex/GroupSelectionScreen.tsx +++ b/src/screens/Planex/GroupSelectionScreen.tsx @@ -27,8 +27,6 @@ import WebSectionList from '../../components/Screens/WebSectionList'; import GroupListAccordion from '../../components/Lists/PlanexGroups/GroupListAccordion'; import AsyncStorageManager from '../../managers/AsyncStorageManager'; -const LIST_ITEM_HEIGHT = 70; - export type PlanexGroupType = { name: string; id: number; @@ -127,7 +125,6 @@ class GroupSelectionScreen extends React.Component { onGroupPress={this.onListItemPress} onFavoritePress={this.onListFavoritePress} currentSearchString={currentSearchString} - height={LIST_ITEM_HEIGHT} /> ); } @@ -311,7 +308,6 @@ class GroupSelectionScreen extends React.Component { fetchUrl={GROUPS_URL} renderItem={this.getRenderItem} updateData={state.currentSearchString + state.favoriteGroups.length} - itemHeight={LIST_ITEM_HEIGHT} /> ); }