Skip to content

Commit 48c97d8

Browse files
authored
Fix blog (#360)
* fix: modify api.ts * fix: remove google auth buttom * fix: fixes responsive fixes on organization * fix: minor fixes * fix: modify create organization * fix: modify create organization * fix: fix organization permission * fix: merge into main * feat: hackathon overview page * feat: hackathon overview page * feat: implement participant overview * feat: implement participant overview * feat: implement resources tab * feat: implement the submission tab * feat: implement comment tab * fix: implement provider for hackathon * fix: implement provider for hackathon * fix: minor fixes * fix: hackathon banner * fix: hackathon banner * fix: fix organization page * fix: fix organization page * fix: use transform * fix: add tagline * fix: add tagline * fix: minor fixes * fix: minor fixes * fix: fix timeline and prizes * fix: correct timeline events * fix: implement registration deadline policy * fix: implement registration deadline policy * feat: implement leave hackathon * feat: implement leave hackathon * fix: delete hackathon * fix: implement invite participants * fix: implement participant profile viewing * feat: fetch participants team * fix: redesign hackathon banner * fix: fix hackthon card * fix: fix search bar in blog page * fix: fix search bar in blog page
1 parent 58590a0 commit 48c97d8

4 files changed

Lines changed: 51 additions & 45 deletions

File tree

components/hackathons/discussion/comment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export function HackathonDiscussions({
104104
) => {
105105
try {
106106
await reportDiscussion(commentId, reason, description);
107-
// Report is handled, no need to update discussions
108107
} catch {
109108
// Error is already handled in the hook
110109
}
@@ -188,6 +187,7 @@ export function HackathonDiscussions({
188187
</div>
189188
)}
190189

190+
{/* Loading state for discussion operations */}
191191
{(isCreating || isUpdating || isDeleting) && (
192192
<div className='mx-4 mt-4 flex items-center gap-2 text-sm text-gray-400 md:mx-0'>
193193
<Loader2 className='h-4 w-4 animate-spin' />

components/landing-page/blog/StreamingBlogGrid.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ const StreamingBlogGrid: React.FC<StreamingBlogGridProps> = ({
334334
</div>
335335
</div>
336336
</div>
337-
338337
<div className=''>
339338
{error && (
340339
<div className='mb-6 rounded-lg border border-red-500/20 bg-red-500/10 px-4 py-3 text-red-400'>
@@ -343,7 +342,7 @@ const StreamingBlogGrid: React.FC<StreamingBlogGridProps> = ({
343342
)}
344343

345344
{displayPosts.length > 0 ? (
346-
<div className='grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3'>
345+
<div className='grid grid-cols-1 gap-6 pt-5 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3'>
347346
{displayPosts.map(post => (
348347
<div key={post.id} className='w-full'>
349348
<BlogCard post={post} onCardClick={handleCardClick} />

package-lock.json

Lines changed: 48 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"marked": "^16.3.0",
112112
"media-chrome": "^4.15.1",
113113
"motion": "^12.23.24",
114-
"next": "16.0.7",
114+
"next": "^16.1.1",
115115
"next-auth": "^5.0.0-beta.29",
116116
"next-themes": "^0.4.6",
117117
"nextjs-toploader": "^3.9.17",

0 commit comments

Comments
 (0)