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>
|
||||||
<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)
|
||||||
|
|||||||
Reference in New Issue
Block a user