diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-19 18:13:57 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-09-19 19:12:31 +0200 |
| commit | 2faf2e34331703b3bdea3eb487cb8799c8d65377 (patch) | |
| tree | dedc6557ddaa8fedd42d9bdf77950f8f9168ebcb /src/utils/hooks/use-article.tsx | |
| parent | d1fe9e2164fc5c8fd767b456eecc2a4eb929a33f (diff) | |
refactor(build): replace paths aliases with relative paths
Using paths aliases starting with "@" can be confusing and can lead to
conflict with existings modules. I prefer to use relative paths to
avoid extra configuration in tools because of these aliases.
Diffstat (limited to 'src/utils/hooks/use-article.tsx')
| -rw-r--r-- | src/utils/hooks/use-article.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/hooks/use-article.tsx b/src/utils/hooks/use-article.tsx index e658407..f6512b2 100644 --- a/src/utils/hooks/use-article.tsx +++ b/src/utils/hooks/use-article.tsx @@ -1,9 +1,9 @@ -import { fetchAPI } from '@services/graphql/api'; -import { getArticleFromRawData } from '@services/graphql/articles'; -import { articleBySlugQuery } from '@services/graphql/articles.query'; -import { Article } from '@ts/types/app'; -import { RawArticle } from '@ts/types/raw-data'; import useSWR from 'swr'; +import { fetchAPI } from '../../services/graphql/api'; +import { getArticleFromRawData } from '../../services/graphql/articles'; +import { articleBySlugQuery } from '../../services/graphql/articles.query'; +import { Article } from '../../types/app'; +import { RawArticle } from '../../types/raw-data'; export type UseArticleConfig = { fallback?: Article; |
