diff options
Diffstat (limited to 'src/pages/recherche')
| -rw-r--r-- | src/pages/recherche/index.tsx | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/src/pages/recherche/index.tsx b/src/pages/recherche/index.tsx index fbea3cc..26cfd91 100644 --- a/src/pages/recherche/index.tsx +++ b/src/pages/recherche/index.tsx @@ -3,42 +3,43 @@ import Head from 'next/head'; import { useRouter } from 'next/router'; import Script from 'next/script'; import { useIntl } from 'react-intl'; -import Notice from '../../components/atoms/layout/notice'; -import Spinner from '../../components/atoms/loaders/spinner'; -import PostsList from '../../components/organisms/layout/posts-list'; -import LinksListWidget from '../../components/organisms/widgets/links-list-widget'; -import { getLayout } from '../../components/templates/layout/layout'; -import PageLayout from '../../components/templates/page/page-layout'; -import { getArticles, getTotalArticles } from '../../services/graphql/articles'; import { - getThematicsPreview, - getTotalThematics, -} from '../../services/graphql/thematics'; + getLayout, + LinksListWidget, + Notice, + PageLayout, + PostsList, + Spinner, +} from '../../components'; import { + getArticles, + getThematicsPreview, getTopicsPreview, + getTotalArticles, + getTotalThematics, getTotalTopics, -} from '../../services/graphql/topics'; -import { type NextPageWithLayout } from '../../types/app'; +} from '../../services/graphql'; import { + type NextPageWithLayout, type RawArticle, type RawThematicPreview, type RawTopicPreview, -} from '../../types/raw-data'; -import { loadTranslation, type Messages } from '../../utils/helpers/i18n'; +} from '../../types'; import { + getBlogSchema, getLinksListItems, getPageLinkFromRawData, getPostsList, -} from '../../utils/helpers/pages'; -import { - getBlogSchema, getSchemaJson, getWebPageSchema, -} from '../../utils/helpers/schema-org'; -import useBreadcrumb from '../../utils/hooks/use-breadcrumb'; -import useDataFromAPI from '../../utils/hooks/use-data-from-api'; -import usePagination from '../../utils/hooks/use-pagination'; -import useSettings from '../../utils/hooks/use-settings'; +} from '../../utils/helpers'; +import { loadTranslation, type Messages } from '../../utils/helpers/server'; +import { + useBreadcrumb, + useDataFromAPI, + usePagination, + useSettings, +} from '../../utils/hooks'; type SearchPageProps = { thematicsList: RawThematicPreview[]; |
