diff --git a/src/app/types/config.ts b/src/app/types/config.ts index 37e6481..9eed5d3 100644 --- a/src/app/types/config.ts +++ b/src/app/types/config.ts @@ -26,10 +26,10 @@ export type Config = { /** * Social links for this app. */ - socialLinks: SocialLink[]; + socialLinks: SocialLinkType[]; }; -type SocialLink = { +export type SocialLinkType = { /** * The name of this social link. */ diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 9574586..d51cc1c 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -8,6 +8,7 @@ import { cn } from "@/lib/utils"; import { ExternalLink } from "lucide-react"; import SocialLink from "@/components/social-link"; import config from "@/config"; +import { SocialLinkType } from "@/types/config"; const links = { Resources: [ @@ -56,7 +57,7 @@ const Footer = (): ReactElement => ( {/* Socials */}
- {config.socialLinks.map((link: SocialLink) => ( + {config.socialLinks.map((link: SocialLinkType) => ( ( - {alt} diff --git a/src/components/navbar/navbar.tsx b/src/components/navbar/navbar.tsx index 792ec0b..2c71086 100644 --- a/src/components/navbar/navbar.tsx +++ b/src/components/navbar/navbar.tsx @@ -7,6 +7,7 @@ import QuickSearchDialog from "@/components/navbar/search-dialog"; import Sidebar from "@/components/sidebar/sidebar"; import SocialLink from "@/components/social-link"; import config from "@/config"; +import { SocialLinkType } from "@/types/config"; const Navbar = ({ pages }: { pages: DocsContentMetadata[] }): ReactElement => (