From 5a4746e0201b8dbd2fdaf98a0214b6dfa014b73e Mon Sep 17 00:00:00 2001 From: seanquiambao Date: Wed, 4 Sep 2024 21:24:15 -0700 Subject: [PATCH] made beat sticky in post --- components/dashboard/index.tsx | 117 ++++++++++++++++----------------- components/global/beat.tsx | 2 +- 2 files changed, 56 insertions(+), 63 deletions(-) diff --git a/components/dashboard/index.tsx b/components/dashboard/index.tsx index ec8d8e8..30b74db 100644 --- a/components/dashboard/index.tsx +++ b/components/dashboard/index.tsx @@ -197,75 +197,68 @@ const DashboardScreen = () => { renderItem={renderItem} /> ) : ( - - - setBeat({})} /> - - - - - - - - - {beat.name} - - - @{beat.username} - - - {beat.location} - + + setBeat({})} /> + + + + - - - + + + {beat.name} + + @{beat.username} + + + {beat.location} - Toaster("BeatDrop Posted", "success")} - /> - {beat.description} - {moment(beat.timestamp).fromNow()} + + + + + + Toaster("BeatDrop Posted", "success")} + /> + {beat.description} + {moment(beat.timestamp).fromNow()} - - {beat.comments?.map( - ( - { timestamp, photo, likes, username, comment }: comment, - index, - ) => ( - - - - - - - {username} - - - {moment(timestamp).fromNow()} - - - {comment} + + {beat.comments?.map( + ( + { timestamp, photo, likes, username, comment }: comment, + index, + ) => ( + + + + + + + {username} + + + {moment(timestamp).fromNow()} + - - + {comment} + + + - {likes} - + {likes} - ), - )} - + + ), + )} diff --git a/components/global/beat.tsx b/components/global/beat.tsx index acd9e3a..25a2f10 100644 --- a/components/global/beat.tsx +++ b/components/global/beat.tsx @@ -10,7 +10,7 @@ const Drop = ({ image, artist, song, location, length, onAdd }: beat) => { ); return ( - +