Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

lw7: update community tickets wall

Francesco Sansalvadore0e0b715dda39
diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
index 54120a7f5c2..a2f403c770b 100644
--- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
+++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
@@ -29,9 +29,8 @@ export default function TicketBrickWall({ users }: Props) {
users={users.slice(0, isMobile ? 5 : 7)}
xOffset={isMobile ? 50 : 250}
/>
- {/* TODO: set the correct amount of users when enough data */}
- <TicketBrickWallRow users={users.slice(isMobile ? 5 : 3, isMobile ? 11 : 14)} reverse />
- {isMobile && <TicketBrickWallRow users={users.slice(3, 15)} />}
+ <TicketBrickWallRow users={users.slice(isMobile ? 5 : 7, isMobile ? 11 : 14)} reverse />
+ {isMobile && <TicketBrickWallRow users={users.slice(11, 17)} />}
</div>
</div>
</div>
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 039e9e547ed..2d5f0625918 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -139,7 +139,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => {
.from('lw7_tickets_golden')
.select('*')
.order('createdAt', { ascending: false })
- .limit(12)
+ .limit(17)
// res.setHeader('Cache-Control', 'public, s-maxage=10, stale-while-revalidate=59')
diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx
index 137299ba799..cbe87cd7c12 100644
--- a/apps/www/pages/launch-week/tickets/[username].tsx
+++ b/apps/www/pages/launch-week/tickets/[username].tsx
@@ -112,7 +112,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
let bg_image_id
// fetch users for the TicketBrickWall
- const { data: users } = await supabaseAdmin!.from('lw7_tickets_golden').select().limit(12)
+ const { data: users } = await supabaseAdmin!.from('lw7_tickets_golden').select().limit(17)
// fetch a specific user
if (username) {