diff --git a/apps/frontend/src/components/new-launch/providers/devto/devto.provider.tsx b/apps/frontend/src/components/new-launch/providers/devto/devto.provider.tsx index b4320897..649fa266 100644 --- a/apps/frontend/src/components/new-launch/providers/devto/devto.provider.tsx +++ b/apps/frontend/src/components/new-launch/providers/devto/devto.provider.tsx @@ -9,19 +9,11 @@ import { SelectOrganization } from '@gitroom/frontend/components/new-launch/prov import { DevtoTags } from '@gitroom/frontend/components/new-launch/providers/devto/devto.tags'; import { useMediaDirectory } from '@gitroom/react/helpers/use.media.directory'; import clsx from 'clsx'; -import localFont from 'next/font/local'; import MDEditor from '@uiw/react-md-editor'; import { Canonical } from '@gitroom/react/form/canonical'; import { useIntegration } from '@gitroom/frontend/components/launches/helpers/use.integration'; import { useSettings } from '@gitroom/frontend/components/launches/helpers/use.values'; -const font = localFont({ - src: [ - { - path: './fonts/SFNS.woff2', - }, - ], -}); const DevtoPreview: FC = () => { const { value } = useIntegration(); const settings = useSettings(); @@ -34,7 +26,6 @@ const DevtoPreview: FC = () => { return (
@@ -60,7 +51,6 @@ const DevtoPreview: FC = () => { style={{ whiteSpace: 'pre-wrap', }} - className={font.className} skipHtml={true} source={value.map((p) => p.content).join('\n')} /> diff --git a/apps/frontend/src/components/new-launch/providers/hashnode/hashnode.provider.tsx b/apps/frontend/src/components/new-launch/providers/hashnode/hashnode.provider.tsx index 36050b7c..2eba8a4f 100644 --- a/apps/frontend/src/components/new-launch/providers/hashnode/hashnode.provider.tsx +++ b/apps/frontend/src/components/new-launch/providers/hashnode/hashnode.provider.tsx @@ -11,12 +11,9 @@ import { useIntegration } from '@gitroom/frontend/components/launches/helpers/us import { useMediaDirectory } from '@gitroom/react/helpers/use.media.directory'; import clsx from 'clsx'; import MDEditor from '@uiw/react-md-editor'; -import { Plus_Jakarta_Sans } from 'next/font/google'; import { MediaComponent } from '@gitroom/frontend/components/media/media.component'; import { Canonical } from '@gitroom/react/form/canonical'; -const font = Plus_Jakarta_Sans({ - subsets: ['latin'], -}); + const HashnodePreview: FC = () => { const { value } = useIntegration(); const settings = useSettings(); @@ -29,7 +26,6 @@ const HashnodePreview: FC = () => { return (
@@ -56,7 +52,6 @@ const HashnodePreview: FC = () => { whiteSpace: 'pre-wrap', color: 'black', }} - className={font.className} skipHtml={true} source={value.map((p) => p.content).join('\n')} /> diff --git a/apps/frontend/src/components/new-launch/providers/medium/medium.provider.tsx b/apps/frontend/src/components/new-launch/providers/medium/medium.provider.tsx index d35a4b69..c646f22c 100644 --- a/apps/frontend/src/components/new-launch/providers/medium/medium.provider.tsx +++ b/apps/frontend/src/components/new-launch/providers/medium/medium.provider.tsx @@ -10,33 +10,9 @@ import { MediumSettingsDto } from '@gitroom/nestjs-libraries/dtos/posts/provider import { useIntegration } from '@gitroom/frontend/components/launches/helpers/use.integration'; import clsx from 'clsx'; import MDEditor from '@uiw/react-md-editor'; -import localFont from 'next/font/local'; import { Canonical } from '@gitroom/react/form/canonical'; import interClass from '@gitroom/react/helpers/inter.font'; -const charter = localFont({ - src: [ - { - path: './fonts/Charter Regular.ttf', - weight: 'normal', - style: 'normal', - }, - { - path: './fonts/Charter Italic.ttf', - weight: 'normal', - style: 'italic', - }, - { - path: './fonts/Charter Bold.ttf', - weight: '700', - style: 'normal', - }, - { - path: './fonts/Charter Bold Italic.ttf', - weight: '700', - style: 'italic', - }, - ], -}); + const MediumPreview: FC = () => { const { value } = useIntegration(); const settings = useSettings(); @@ -59,7 +35,6 @@ const MediumPreview: FC = () => { whiteSpace: 'pre-wrap', color: '#242424', }} - className={charter.className} skipHtml={true} source={value.map((p) => p.content).join('\n')} />