Fix group accordions expanding incorrectly
这个提交包含在:
父节点
11609f8277
当前提交
346b00defd
共有 2 个文件被更改,包括 0 次插入 和 6 次删除
|
@ -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}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
正在加载…
在新工单中引用