refactor: make components more modular

would help in implementing name route

also did some stylistic changes
This commit is contained in:
zyachel
2023-04-15 20:56:15 +05:30
parent 8ce02d0236
commit 18ca98fd4a
43 changed files with 757 additions and 796 deletions

View File

@ -0,0 +1,3 @@
import type Name from './name';
export type Media = Name['media']; // exactly the same in title and name

View File

@ -1,8 +1,6 @@
import cleanTitle from 'src/utils/cleaners/title';
import title from 'src/utils/fetchers/title';
export type AxiosTitleRes = Awaited<ReturnType<typeof title>>;
// for full title
type Title = ReturnType<typeof cleanTitle>;
export type { Title as default };