Skip to content

Commit

Permalink
chore: add types for site config
Browse files Browse the repository at this point in the history
  • Loading branch information
BharathxD committed Aug 3, 2023
1 parent 086b531 commit 2543610
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/d/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ const CreatePostPage: React.FC = () => {
/>
</div>
<p className="text-zinc-500">
Community names should be 4-20 characters long and must not
contain spaces.
Community names should be 4-20 characters long and must not contain spaces.
</p>
<div>
<Textarea
Expand Down
12 changes: 10 additions & 2 deletions src/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
type SiteConfig = {
name: string;
description: string;
url: string;
copyrights: number;
ogImage: string;
}

/**
* The number of results to be fetched per page in infinite scroll pagination.
* @type {number}
Expand All @@ -6,14 +14,14 @@ export const INFINITE_SCROLL_PAGINATION_RESULTS = 4;

/**
* Configuration object for the DevCircle website.
* @type {Object}
* @type {SiteConfig}
* @property {string} name - The name of the website
* @property {string} description - A brief description of the website.
* @property {string} url - The URL of the website.
* @property {number} copyrights - The copyright year for the website content.
* @property {string} ogImage - The URL of the OpenGraph image for social media sharing.
*/
const siteConfig = {
const siteConfig: SiteConfig = {
name: "DevCircle",
description:
"DevCircle is an open-source community platform built for developers. It serves as a space for mutual guidance, sharing tips and tricks, and staying updated on the latest developments in the world of developers. Join this vibrant community to connect with fellow developers, share knowledge, and explore the exciting world of coding.",
Expand Down

0 comments on commit 2543610

Please sign in to comment.