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:
parent
2b41ef578a
commit
5e5278aef8
@ -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
11
src/types/index.d.ts
vendored
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user