diff --git a/front/public/empty.png b/front/public/empty.png new file mode 100644 index 0000000..6f0d5c6 Binary files /dev/null and b/front/public/empty.png differ diff --git a/front/src/components/StoriesPreview.tsx b/front/src/components/StoriesPreview.tsx index 1c73357..c255c65 100644 --- a/front/src/components/StoriesPreview.tsx +++ b/front/src/components/StoriesPreview.tsx @@ -17,26 +17,41 @@ type StoriesPreviewProps = { } const StoriesPreview = ({ announcements, category }: StoriesPreviewProps) => ( - announcements.map((ann, i) => ( -
  • + announcements.length > 0 ? ( + announcements.map((ann, i) => ( +
  • + + {ann.src?.endsWith('mp4') ? ( +
  • + )) + ) : ( +
  • - {ann.src?.endsWith('mp4') ? ( -
  • - )) + ) ) function StoriesPreviewCarousel({ announcements, category }: StoriesPreviewProps) { @@ -86,13 +101,10 @@ function StoriesPreviewCarousel({ announcements, category }: StoriesPreviewProps } - {announcements.length > 0 ? ( - - ) : ( -

    Здесь пока пусто

    - )} + + {showScrollButtons.right &&