Skip to content

Commit

Permalink
add no friends message
Browse files Browse the repository at this point in the history
  • Loading branch information
annacai44 committed Feb 2, 2025
1 parent 299df13 commit 6e4db3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/components/Feed/Feed.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@
z-index: 1000;
background-color: #fff;
}


.no-friends-text {
margin-top: 50px !important;
text-align: center;
}
6 changes: 2 additions & 4 deletions src/components/Feed/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import NavigationBar from '../NavigationBar/NavigationBar';
import CourseSelect from '../CourseSelect/CourseSelect';
import PeopleIcon from '@mui/icons-material/People';
import PublicIcon from '@mui/icons-material/Public';
import Tabs from '@mui/material/Tabs';
import Tab from '@mui/material/Tab';
import { Container, Box, Stack } from '@mui/material';
import { Container, Box, Stack, Typography, Tabs, Tab } from '@mui/material';
import { collection, getDocs } from "firebase/firestore";
import {db} from "../../utilities/firebase";
import "./Feed.css";
Expand Down Expand Up @@ -74,7 +72,7 @@ function Feed({ friends, setLikedPosts }) {
<Box>
<Stack spacing={3}>
{filteredPosts.length === 0 ? (
<p>No results found...</p>
<Typography className="no-friends-text" variant="h4">Your friends have not reviewed any courses yet. Add more friends to see some posts!</Typography>
) : (
filteredPosts
.slice()
Expand Down

0 comments on commit 6e4db3b

Please sign in to comment.