Skip to content

Commit

Permalink
remove distracting text
Browse files Browse the repository at this point in the history
  • Loading branch information
vantage-ola committed Nov 27, 2024
1 parent a596858 commit 96e6384
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tracknow/web/src/components/Post/MediaCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChevronLeftIcon, ChevronRightIcon } from "@chakra-ui/icons";
import * as React from "react";
import miscFunctions from "../../misc/miscFunctions";
import { Box, Button, Spinner, Text } from "@chakra-ui/react";
import { Box, Button, Text } from "@chakra-ui/react";
import { LoadingSpinner } from "../Loading/LoadingSpinner";

type MediaItem = {
Expand Down Expand Up @@ -59,11 +59,7 @@ const MediaCarousel: React.FC<MediaCarouselProps> = ({
}, [currentIndex, mediaItems]);

if (mediaItems.length === 0) {
return (
<Text fontSize={"xs"} color={"GrayText"}>
No media items available.
</Text>
);
return <Text fontSize={"xs"} color={"GrayText"}></Text>;
}

const currentItem = mediaItems[currentIndex];
Expand Down

0 comments on commit 96e6384

Please sign in to comment.