mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
chore(web): render video testimonial in reverse order
This commit is contained in:
@@ -91,9 +91,7 @@ const TweetCard = ({ tweetId, index }: { tweetId: string; index: number }) => (
|
||||
</div>
|
||||
<div className="w-full min-w-0 overflow-hidden">
|
||||
<div style={{ width: "100%", minWidth: 0, maxWidth: "100%" }}>
|
||||
{/* <Suspense fallback={<TweetSkeleton />}> */}
|
||||
<Tweet id={tweetId} components={components} />
|
||||
{/* </Suspense> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -107,11 +105,8 @@ export default function Testimonials({
|
||||
preloadedTestimonialsTweet: Preloaded<typeof api.testimonials.getTweets>;
|
||||
preloadedTestimonialsVideos: Preloaded<typeof api.testimonials.getVideos>;
|
||||
}) {
|
||||
const videosData = usePreloadedQuery(preloadedTestimonialsVideos);
|
||||
const tweetsData = usePreloadedQuery(preloadedTestimonialsTweet);
|
||||
|
||||
const videos = videosData || [];
|
||||
const tweets = tweetsData || [];
|
||||
const videos = usePreloadedQuery(preloadedTestimonialsVideos).reverse();
|
||||
const tweets = usePreloadedQuery(preloadedTestimonialsTweet).reverse();
|
||||
|
||||
const getResponsiveColumns = (numCols: number) => {
|
||||
const columns: string[][] = Array(numCols)
|
||||
|
||||
Reference in New Issue
Block a user