timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

fix: update comments component incase of no provider #843

Closed talhatahir closed 5 months ago

talhatahir commented 7 months ago

Incase if someone does not have any commenting platform enabled, the code will still show the Load Comments button. This PR fixes it and only shows the Load Comments button if a commenting platform is provided.

vercel[bot] commented 7 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 1:49pm
talhatahir commented 6 months ago

@timlrx please be so kind to have a look at this PR.

timlrx commented 5 months ago

There's an error in the deployed build:

Error: 
  x An object member cannot be declared optional
    ,-[/vercel/path0/components/Comments.tsx:11:1]

Could you fix it and ensure that it builds without error?

talhatahir commented 5 months ago

@timlrx Fixed it! Thanks ✌️

talhatahir commented 5 months ago

@timlrx can you have a look

timlrx commented 5 months ago

Thanks for the fix!