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:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user