From 908eaf2bba5c8d6d1f4eeeaeb9674bc906af08f4 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Sat, 28 Jan 2023 22:06:54 +0530 Subject: [PATCH] fix: get rid of extra parent container --- app/components/DocumentExplorer.tsx | 60 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/app/components/DocumentExplorer.tsx b/app/components/DocumentExplorer.tsx index c2df49ad4f..4c17fdf29b 100644 --- a/app/components/DocumentExplorer.tsx +++ b/app/components/DocumentExplorer.tsx @@ -311,47 +311,43 @@ function DocumentExplorer({ onSubmit, onSelect, items }: Props) { )); return ( - + - - {nodes.length ? ( - - {({ width, height }: { width: number; height: number }) => ( - - results[index].id} - > - {ListItem} - - - )} - - ) : ( - - {t("No results found")}. - - )} - - + {nodes.length ? ( + + {({ width, height }: { width: number; height: number }) => ( + + results[index].id} + > + {ListItem} + + + )} + + ) : ( + + {t("No results found")}. + + )} + ); } -const Container = styled.div``; - const FlexContainer = styled(Flex)` height: 100%; align-items: center;