-
- {!canSendForPublication
- ? t('not_matching_order', 'Not matching order')
- : postFor
- ? t('submit_for_order', 'Submit for order')
- : !existingData.integration
- ? selectedIntegrations.length === 0
- ? t(
- 'select_channels_from_circles',
- 'Select channels from the circles above'
- )
- : t('add_to_calendar', 'Add to calendar')
- : // @ts-ignore
- existingData?.posts?.[0]?.state === 'DRAFT'
- ? t('schedule', 'Schedule')
- : t('update', 'Update')}
-
- {!postFor && (
-
-
-
- {t('post_now', 'Post now')}
-
+ {addEditSets && (
+
+ )}
+
+ {!addEditSets && (
+
+ )}
+
+ {!addEditSets && (
+
+ {!postFor && (
+
+
+
+ {t('post_now', 'Post now')}
+
+
+ )}
+
+
+ )}
diff --git a/apps/frontend/src/components/layout/settings.component.tsx b/apps/frontend/src/components/layout/settings.component.tsx
index 0fad51f2..0850f213 100644
--- a/apps/frontend/src/components/layout/settings.component.tsx
+++ b/apps/frontend/src/components/layout/settings.component.tsx
@@ -21,6 +21,7 @@ import { useVariables } from '@gitroom/react/helpers/variable.context';
import { PublicComponent } from '@gitroom/frontend/components/public-api/public.component';
import Link from 'next/link';
import { Webhooks } from '@gitroom/frontend/components/webhooks/webhooks';
+import { Sets } from '@gitroom/frontend/components/sets/sets';
import { TopTitle } from '@gitroom/frontend/components/launches/helpers/top.title.component';
import { Tabs } from '@mantine/core';
import { SignaturesComponent } from '@gitroom/frontend/components/settings/signatures.component';
@@ -84,10 +85,7 @@ export const SettingsPopup: FC<{
if (user?.tier?.autoPost) {
return 'autopost';
}
- if (user?.tier?.public_api && isGeneral) {
- return 'api';
- }
- return 'signatures';
+ return 'sets';
}, [user?.tier, isGeneral]);
const t = useT();
@@ -131,6 +129,7 @@ export const SettingsPopup: FC<{
{t('auto_post', 'Auto Post')}
)}
+