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;
|
onGroupPress: (data: PlanexGroupType) => void;
|
||||||
onFavoritePress: (data: PlanexGroupType) => void;
|
onFavoritePress: (data: PlanexGroupType) => void;
|
||||||
currentSearchString: string;
|
currentSearchString: string;
|
||||||
height: number;
|
|
||||||
theme: ReactNativePaper.Theme;
|
theme: ReactNativePaper.Theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -101,7 +100,6 @@ class GroupListAccordion extends React.Component<PropsType> {
|
||||||
<AnimatedAccordion
|
<AnimatedAccordion
|
||||||
title={item.name.replace(REPLACE_REGEX, ' ')}
|
title={item.name.replace(REPLACE_REGEX, ' ')}
|
||||||
style={{
|
style={{
|
||||||
height: props.height,
|
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
left={(iconProps) =>
|
left={(iconProps) =>
|
||||||
|
|
|
@ -27,8 +27,6 @@ import WebSectionList from '../../components/Screens/WebSectionList';
|
||||||
import GroupListAccordion from '../../components/Lists/PlanexGroups/GroupListAccordion';
|
import GroupListAccordion from '../../components/Lists/PlanexGroups/GroupListAccordion';
|
||||||
import AsyncStorageManager from '../../managers/AsyncStorageManager';
|
import AsyncStorageManager from '../../managers/AsyncStorageManager';
|
||||||
|
|
||||||
const LIST_ITEM_HEIGHT = 70;
|
|
||||||
|
|
||||||
export type PlanexGroupType = {
|
export type PlanexGroupType = {
|
||||||
name: string;
|
name: string;
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -127,7 +125,6 @@ class GroupSelectionScreen extends React.Component<PropsType, StateType> {
|
||||||
onGroupPress={this.onListItemPress}
|
onGroupPress={this.onListItemPress}
|
||||||
onFavoritePress={this.onListFavoritePress}
|
onFavoritePress={this.onListFavoritePress}
|
||||||
currentSearchString={currentSearchString}
|
currentSearchString={currentSearchString}
|
||||||
height={LIST_ITEM_HEIGHT}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -311,7 +308,6 @@ class GroupSelectionScreen extends React.Component<PropsType, StateType> {
|
||||||
fetchUrl={GROUPS_URL}
|
fetchUrl={GROUPS_URL}
|
||||||
renderItem={this.getRenderItem}
|
renderItem={this.getRenderItem}
|
||||||
updateData={state.currentSearchString + state.favoriteGroups.length}
|
updateData={state.currentSearchString + state.favoriteGroups.length}
|
||||||
itemHeight={LIST_ITEM_HEIGHT}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue