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