Skip to content

Commit

Permalink
Fix some part on communities section
Browse files Browse the repository at this point in the history
  • Loading branch information
chauhanshilpa committed May 17, 2024
1 parent 59cbbe9 commit 753f96e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/components/communities_components/CommunitiesNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import { v4 as uuidv4 } from "uuid";
import Link from "next/link";
import SearchBar from "../reusable/SearchBar";
import { DISCOVER_NAVBAR_LINKS } from "@/app/utils/constants";
import { COMMUNITY_NAVBAR_LINKS } from "@/app/utils/constants";

const Navbar = () => {
return (
<div className="flex justify-between mt-2 mb-8">
<SearchBar />
<SearchBar placeholder="Find new friends, chat and discover communities"/>
<div className="flex">
<div className="flex gap-10">
{DISCOVER_NAVBAR_LINKS.map(({ label, link }) => (
{COMMUNITY_NAVBAR_LINKS.map(({ label, link }) => (
<Link
key={uuidv4()}
href={link}
Expand Down
4 changes: 2 additions & 2 deletions app/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export const NAVBAR_LINKS = [
},
];

// discover page related constants
export const DISCOVER_NAVBAR_LINKS = [
// community page related constants
export const COMMUNITY_NAVBAR_LINKS = [
{
label: "Random Chats",
link: "/",
Expand Down

0 comments on commit 753f96e

Please sign in to comment.