refactor(data): move data exports to index file

Consolidate data exports from data.ts to index.ts for better organization and maintainability. Remove the now redundant data.ts file.
This commit is contained in:
joyzhao
2025-06-21 10:17:27 +08:00
parent 6d80b12855
commit d0fe30a5e3
8 changed files with 11 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
import { type AuthorCardProps } from '@/types';
import { personalInfo } from '@/lib/data';
import { personalInfo } from '@/lib/data/index';
export default function AuthorCard({ lang, author }: AuthorCardProps) {
// Default author info based on personalInfo

View File

@@ -1,6 +1,6 @@
import { useTranslations } from "@/i18n/utils";
import type { Lang } from "@/types/i18n";
import { personalInfo } from "@/lib/data";
import { personalInfo } from "@/lib/data/index";
import { motion } from "framer-motion";
import { useState, useEffect } from "react";
import { defaultLang } from "@/i18n/ui";

View File

@@ -1,4 +1,4 @@
import { personalInfo } from "@/lib/data";
import { personalInfo } from "@/lib/data/index";
import LanguageSwitcher from "./LanguageSwitcher";
import ThemeToggle from "./ui/theme-toggle";
import Container from "./ui/Container";