feat: fix errors

This commit is contained in:
Nevo David 2025-06-26 20:07:30 +07:00
parent af2f952ed0
commit ad6264f256
3 changed files with 2 additions and 42 deletions

View File

@ -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 (
<div
className={clsx(
font.className,
'font-[800] flex h-[1000px] w-[699.8px] rounded-[10px] bg-customColor32 overflow-hidden overflow-y-auto flex-col gap-[32px]'
)}
>
@ -60,7 +51,6 @@ const DevtoPreview: FC = () => {
style={{
whiteSpace: 'pre-wrap',
}}
className={font.className}
skipHtml={true}
source={value.map((p) => p.content).join('\n')}
/>

View File

@ -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 (
<div
className={clsx(
font.className,
'text-center text-black flex h-[1000px] w-[699.8px] rounded-[10px] bg-white overflow-hidden overflow-y-auto flex-col gap-[32px]'
)}
>
@ -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')}
/>

View File

@ -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')}
/>