diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-20 16:38:54 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-09-20 16:38:54 +0200 |
| commit | f861e6a269ba9f62700776d3cd13b644a9e836d4 (patch) | |
| tree | a5a107e7a6e4ff8b4261fe04349357bc00b783ee /src/pages/cv.tsx | |
| parent | 03331c44276ec56e9f235e4d5ee75030455a753f (diff) | |
refactor: use named export for everything except pages
Next expect a default export for pages so only those components should
use default exports. Everything else should use named exports to
reduce the number of import statements.
Diffstat (limited to 'src/pages/cv.tsx')
| -rw-r--r-- | src/pages/cv.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx index 9e01e2f..9e1e7db 100644 --- a/src/pages/cv.tsx +++ b/src/pages/cv.tsx @@ -5,26 +5,26 @@ import { useRouter } from 'next/router'; import Script from 'next/script'; import React, { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from 'react'; import { useIntl } from 'react-intl'; -import Heading from '../components/atoms/headings/heading'; -import Link from '../components/atoms/links/link'; -import List from '../components/atoms/lists/list'; -import ImageWidget from '../components/organisms/widgets/image-widget'; -import SocialMedia from '../components/organisms/widgets/social-media'; -import { getLayout } from '../components/templates/layout/layout'; -import PageLayout, { +import { + getLayout, + Heading, + ImageWidget, + Link, + List, + PageLayout, type PageLayoutProps, -} from '../components/templates/page/page-layout'; + SocialMedia, +} from '../components'; import CVContent, { data, meta } from '../content/pages/cv.mdx'; import styles from '../styles/pages/cv.module.scss'; -import { type NextPageWithLayout } from '../types/app'; -import { loadTranslation } from '../utils/helpers/i18n'; +import { type NextPageWithLayout } from '../types'; import { getSchemaJson, getSinglePageSchema, getWebPageSchema, -} from '../utils/helpers/schema-org'; -import useBreadcrumb from '../utils/hooks/use-breadcrumb'; -import useSettings from '../utils/hooks/use-settings'; +} from '../utils/helpers'; +import { loadTranslation } from '../utils/helpers/server'; +import { useBreadcrumb, useSettings } from '../utils/hooks'; const ExternalLink = ({ children = '', |
