|
@@ -27,7 +27,8 @@ export const BoxPopup = forwardRef<BoxPopupRef, BoxPopupProps>(({ onSelect }, re
|
|
|
|
|
|
|
|
useImperativeHandle(ref, () => ({
|
|
useImperativeHandle(ref, () => ({
|
|
|
open: (data: BoxItem[]) => {
|
|
open: (data: BoxItem[]) => {
|
|
|
- setList(data);
|
|
|
|
|
|
|
+ console.log('BoxPopup open with data:', data?.length);
|
|
|
|
|
+ setList(data || []);
|
|
|
setActiveBucket(0); // Reset to first bucket
|
|
setActiveBucket(0); // Reset to first bucket
|
|
|
setVisible(true);
|
|
setVisible(true);
|
|
|
},
|
|
},
|
|
@@ -123,6 +124,7 @@ const styles = StyleSheet.create({
|
|
|
borderTopLeftRadius: 10,
|
|
borderTopLeftRadius: 10,
|
|
|
borderTopRightRadius: 10,
|
|
borderTopRightRadius: 10,
|
|
|
maxHeight: '85%', // Increased slightly
|
|
maxHeight: '85%', // Increased slightly
|
|
|
|
|
+ minHeight: 400, // Ensure popup has height even if list is empty
|
|
|
paddingBottom: 20,
|
|
paddingBottom: 20,
|
|
|
},
|
|
},
|
|
|
titleSection: {
|
|
titleSection: {
|