forked from vergnet/application-amicale
Fix group accordions expanding incorrectly
This commit is contained in:
parent
11609f8277
commit
346b00defd
2 changed files with 0 additions and 6 deletions
|
@ -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<PropsType> {
|
|||
<AnimatedAccordion
|
||||
title={item.name.replace(REPLACE_REGEX, ' ')}
|
||||
style={{
|
||||
height: props.height,
|
||||
justifyContent: 'center',
|
||||
}}
|
||||
left={(iconProps) =>
|
||||
|
|
|
@ -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<PropsType, StateType> {
|
|||
onGroupPress={this.onListItemPress}
|
||||
onFavoritePress={this.onListFavoritePress}
|
||||
currentSearchString={currentSearchString}
|
||||
height={LIST_ITEM_HEIGHT}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -311,7 +308,6 @@ class GroupSelectionScreen extends React.Component<PropsType, StateType> {
|
|||
fetchUrl={GROUPS_URL}
|
||||
renderItem={this.getRenderItem}
|
||||
updateData={state.currentSearchString + state.favoriteGroups.length}
|
||||
itemHeight={LIST_ITEM_HEIGHT}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue