Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit club display to 6 #55

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@types/bcrypt": "^5.0.2",
"@types/cors": "^2.8.17",
"@types/multer": "^1.4.12",
"backend": "file:",
"bcrypt": "^5.1.1",
"cloudinary": "^1.41.3",
"cors": "^2.8.5",
Expand Down
5 changes: 5 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"canvas-confetti": "^1.9.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dypcetclubs": "file:",
"framer-motion": "^11.3.30",
"lucide-react": "^0.419.0",
"react": "^18.3.1",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/appComponents/Clubs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { useClubs } from "../hooks/useClubs";
export default function Clubs() {
const { data: clubs, error, isLoading } = useClubs();

const displayedClubs = clubs?.slice(0, 6);

if (isLoading)
return (
<div className="min-h-screen px-6 py-12 bg-white">
Expand Down Expand Up @@ -47,7 +49,7 @@ export default function Clubs() {
</div>
{/* Clubs Grid */}
<div className="z-10 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
{clubs?.map((club, index) => (
{displayedClubs?.map((club, index) => (
<ClubCard
key={index}
memberCount={club.Members.length}
Expand Down
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"devDependencies": {
"husky": "^8.0.3"
},
"dependencies": {
"dypcetclubs-root": "file:"
}
}
Loading