changing post display on profile to a more compact display that eventually you will be able to click into for more details - I think i will do the same on the posts page and have the admins enter information about why the post was approved or denied

This commit is contained in:
Will Baumbach
2025-08-07 23:23:46 -05:00
parent bcd78e3f89
commit 6dfe544e1d
5 changed files with 91 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ import { useUser } from '@clerk/clerk-react'
import { useFocusEffect } from 'expo-router'
import React, { useState } from 'react'
import { Image, StyleSheet, Text, View } from 'react-native'
import { PostComponent } from '../components/PostComponent'
import { CompactPostComponent } from '../components/CompactPostComponent'
import { SignOutButton } from '../components/SignOutButton'
import { Post } from '../models/postModel'
@@ -50,7 +50,7 @@ export default function PostsScreen() {
</View>
<View style={styles.userPostsCard}>
{posts?.length ? (
posts.map((el) => <PostComponent key={el._id} post={el} fetchData={fetchData} />)
posts.map((el) => <CompactPostComponent key={el._id} {...el} />)
) : (
<View style={styles.noPostsContainer}>
<Text style={styles.noPosts}>Your posts will show up here!</Text>