chore(web): render video testimonial in reverse order

This commit is contained in:
Aman Varshney
2025-08-29 15:00:15 +05:30
parent a3c59356e7
commit 22abd96bba

View File

@@ -91,9 +91,7 @@ const TweetCard = ({ tweetId, index }: { tweetId: string; index: number }) => (
</div> </div>
<div className="w-full min-w-0 overflow-hidden"> <div className="w-full min-w-0 overflow-hidden">
<div style={{ width: "100%", minWidth: 0, maxWidth: "100%" }}> <div style={{ width: "100%", minWidth: 0, maxWidth: "100%" }}>
{/* <Suspense fallback={<TweetSkeleton />}> */}
<Tweet id={tweetId} components={components} /> <Tweet id={tweetId} components={components} />
{/* </Suspense> */}
</div> </div>
</div> </div>
</div> </div>
@@ -107,11 +105,8 @@ export default function Testimonials({
preloadedTestimonialsTweet: Preloaded<typeof api.testimonials.getTweets>; preloadedTestimonialsTweet: Preloaded<typeof api.testimonials.getTweets>;
preloadedTestimonialsVideos: Preloaded<typeof api.testimonials.getVideos>; preloadedTestimonialsVideos: Preloaded<typeof api.testimonials.getVideos>;
}) { }) {
const videosData = usePreloadedQuery(preloadedTestimonialsVideos); const videos = usePreloadedQuery(preloadedTestimonialsVideos).reverse();
const tweetsData = usePreloadedQuery(preloadedTestimonialsTweet); const tweets = usePreloadedQuery(preloadedTestimonialsTweet).reverse();
const videos = videosData || [];
const tweets = tweetsData || [];
const getResponsiveColumns = (numCols: number) => { const getResponsiveColumns = (numCols: number) => {
const columns: string[][] = Array(numCols) const columns: string[][] = Array(numCols)