diff --git a/daily-thought-frontend/src/components/post/HiddenPost.tsx b/daily-thought-frontend/src/components/post/HiddenPost.tsx index 936303d8576326408ba32e25262d591a4273c484..cb91e1440fe85b36714101f2046f6021beeb81db 100644 --- a/daily-thought-frontend/src/components/post/HiddenPost.tsx +++ b/daily-thought-frontend/src/components/post/HiddenPost.tsx @@ -1,24 +1,29 @@ import { FC, PropsWithChildren } from "react"; import styles from "../../styles/HiddenPost.module.css" import { BsEyeSlash } from 'react-icons/bs'; +import Avatar from "../profile/avatar"; +import { User } from "@/types/user"; type HiddenPostProps ={ - UserColors: string[]; + User: User; } const HiddenPost: FC<PropsWithChildren<HiddenPostProps>> = ({ - UserColors + User }) => { - const shuffledColors = UserColors.sort((a: string, b: string) => 0.5 - Math.random()); + const shuffledColors = User.Colors.sort((a: string, b: string) => 0.5 - Math.random()); return ( - <div className={styles.hiddenCard}> - <div className={styles.hiddenCardContent}> - <BsEyeSlash size={50}/> - <p className={styles.title}>Post Hidden</p> - <p className={styles.text}>Post a thought to view</p> + <> + <Avatar User={User}/> + <div className={styles.hiddenCard}> + <div className={styles.hiddenCardContent}> + <BsEyeSlash size={50}/> + <p className={styles.title}>Post Hidden</p> + <p className={styles.text}>Post a thought to view</p> + </div> </div> - </div> + </> ) }