π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat loading
Nevo David6390eb502d04
diff --git a/apps/frontend/src/components/launches/launches.component.tsx b/apps/frontend/src/components/launches/launches.component.tsxindex 7313baf79..998d39480 100644--- a/apps/frontend/src/components/launches/launches.component.tsx+++ b/apps/frontend/src/components/launches/launches.component.tsx@@ -1,16 +1,15 @@'use client';import { AddProviderButton } from '@gitroom/frontend/components/launches/add.provider.component';-import { FC, useCallback, useMemo } from 'react';+import { useCallback, useMemo } from 'react';import Image from 'next/image';import { orderBy } from 'lodash';import { Calendar } from '@gitroom/frontend/components/launches/calendar';-import {- CalendarWeekProvider,-} from '@gitroom/frontend/components/launches/calendar.context';+import { CalendarWeekProvider } from '@gitroom/frontend/components/launches/calendar.context';import { Filters } from '@gitroom/frontend/components/launches/filters';import { useFetch } from '@gitroom/helpers/utils/custom.fetch';import useSWR from 'swr';+import { LoadingComponent } from '@gitroom/frontend/components/layout/loading';export const LaunchesComponent = () => {const fetch = useFetch();@@ -18,18 +17,18 @@ export const LaunchesComponent = () => {return (await (await fetch(path)).json()).integrations;}, []);- const { data: integrations } = useSWR(- '/integrations/list',- load,- {- fallbackData: [],- }- );+ const { isLoading, data: integrations } = useSWR('/integrations/list', load, {+ fallbackData: [],+ });const sortedIntegrations = useMemo(() => {return orderBy(integrations, ['type', 'identifier'], ['desc', 'asc']);}, [integrations]);+ if (isLoading) {+ return <LoadingComponent />;+ }+return (<CalendarWeekProvider integrations={sortedIntegrations}><div className="flex flex-1 flex-col">