Skip to content

Commit

Permalink
persisted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shahdivyank committed Sep 7, 2024
1 parent 6f38c7b commit 82f2cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const DashboardScreen = () => {
<Text className="p-2">{moment(timestamp).fromNow()}</Text>
</Pressable>
),
[]
[],
);

const map = useRef<MapView>(null);
Expand Down Expand Up @@ -235,7 +235,7 @@ const DashboardScreen = () => {
{beat.comments?.map(
(
{ timestamp, photo, likes, username, comment }: comment,
index
index,
) => (
<View className="flex flex-row" key={index}>
<View className="rounded-full overflow-hidden h-[40px] w-[40px]">
Expand All @@ -257,7 +257,7 @@ const DashboardScreen = () => {
<Text className="">{likes}</Text>
</View>
</View>
)
),
)}
</View>
<Comment beat={beat} setBeat={setBeat} />
Expand Down

0 comments on commit 82f2cc5

Please sign in to comment.