chore: remove WebsiteInfo type and clean up imports in config

- Eliminate the `WebsiteInfo` type from the types definition to simplify the codebase.
- Update `config.tsx` to remove the import of the now obsolete `WebsiteInfo` type, enhancing clarity and maintainability.
This commit is contained in:
javayhu 2025-03-15 14:09:47 +08:00
parent 2b41ef578a
commit 5e5278aef8
2 changed files with 1 additions and 12 deletions

View File

@ -8,7 +8,7 @@ import { TwitterIcon } from '@/components/icons/twitter';
import { YouTubeIcon } from '@/components/icons/youtube';
import { TranslationFunction } from '@/i18n/translator';
import { Routes } from '@/routes';
import { MenuItem, NestedMenuItem, WebsiteConfig, WebsiteInfo } from '@/types';
import { MenuItem, NestedMenuItem, WebsiteConfig } from '@/types';
import { DashboardIcon } from '@radix-ui/react-icons';
import {
AudioLinesIcon,

11
src/types/index.d.ts vendored
View File

@ -22,17 +22,6 @@ export type WebsiteConfig = {
};
};
/**
* website info, with translations
*
* name: the name of the website, used in navbar and footer
* tagline: the tagline of the website, used in footer
*/
export type WebsiteInfo = {
name: string;
tagline: string;
};
/**
* menu item
*