π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix errors
Nevo Davidad6264f256ae
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.tsxindex b43208979..649fa266a 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/provimport { 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 (<divclassName={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')}/>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.tsxindex 36050b7c2..2eba8a4f5 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/usimport { 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 (<divclassName={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')}/>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.tsxindex d35a4b69a..c646f22ce 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/providerimport { 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')}/>