From 37f011cf74ada7cd51947db391c38274bdf5aa00 Mon Sep 17 00:00:00 2001 From: javayhu Date: Fri, 5 Sep 2025 00:07:07 +0800 Subject: [PATCH] refactor: rename getSocialLinks to useSocialLinks for improved clarity and consistency --- src/components/layout/footer.tsx | 4 ++-- src/config/social-config.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/layout/footer.tsx b/src/components/layout/footer.tsx index 83e27d4..fc49c8b 100644 --- a/src/components/layout/footer.tsx +++ b/src/components/layout/footer.tsx @@ -5,7 +5,7 @@ import { Logo } from '@/components/layout/logo'; import { ModeSwitcherHorizontal } from '@/components/layout/mode-switcher-horizontal'; import BuiltWithButton from '@/components/shared/built-with-button'; import { useFooterLinks } from '@/config/footer-config'; -import { getSocialLinks } from '@/config/social-config'; +import { useSocialLinks } from '@/config/social-config'; import { LocaleLink } from '@/i18n/navigation'; import { cn } from '@/lib/utils'; import { useTranslations } from 'next-intl'; @@ -14,7 +14,7 @@ import type React from 'react'; export function Footer({ className }: React.HTMLAttributes) { const t = useTranslations(); const footerLinks = useFooterLinks(); - const socialLinks = getSocialLinks(); + const socialLinks = useSocialLinks(); return (