+ {gpsId &&
}
+ {street && city &&
}
+ {newsFlashStore.newsFlashCollection.data.length > 0 ? (
+ newsFlashStore.newsFlashCollection.data.map((news, index) => {
+ const isFirst = index === 0;
+ const isLast = index === newsFlashStore.newsFlashCollection.data.length - 1;
+ const selectedItem = news.id === +newsId ? selectedItemRef : undefined;
+
+ return (
+
+
+
+ );
+ })
+ ) : (
+
+ לא נמצאו תוצאות מהמקור המבוקש
-
-
+ )}
+
);
};
diff --git a/src/components/organisms/SideBar.tsx b/src/components/organisms/SideBar.tsx
index 6a8d401d..8a71b83b 100644
--- a/src/components/organisms/SideBar.tsx
+++ b/src/components/organisms/SideBar.tsx
@@ -8,11 +8,9 @@ import { Typography, ErrorBoundary } from 'components/atoms';
import { observer } from 'mobx-react-lite';
import { useStore } from 'store/storeConfig';
import RootStore from 'store/root.store';
-import { InfiniteScroll } from 'components/atoms';
import SideBarMap from 'components/molecules/SideBarMap';
import { useTranslation } from 'react-i18next';
-
-const INFINITE_SCROLL_FETCH_SIZE = 100;
+import { Direction } from 'models/ScrollObserver.model';
interface IProps {}
@@ -37,10 +35,23 @@ const SideBar: FC