Skip to content

Commit 9b6e721

Browse files
committed
feat: internal plugs
1 parent fd33fe9 commit 9b6e721

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/frontend/src/components/new-launch/providers/high.order.provider.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const withProvider = function <T extends object>(
228228
{t('preview', 'Preview')}
229229
</Button>
230230
</div>
231-
{!!SettingsComponent && (
231+
{(!!SettingsComponent || !!data?.internalPlugs?.length) && (
232232
<div className="flex-1 flex">
233233
<Button
234234
onClick={() => setTab(1)}
@@ -245,7 +245,7 @@ export const withProvider = function <T extends object>(
245245
)}
246246
</div>
247247

248-
{(tab === 0 || !SettingsComponent) &&
248+
{(tab === 0 || (!SettingsComponent && !data?.internalPlugs?.length)) &&
249249
!value?.[0]?.content?.length && (
250250
<div>
251251
{t(
@@ -254,7 +254,7 @@ export const withProvider = function <T extends object>(
254254
)}
255255
</div>
256256
)}
257-
{(tab === 0 || !SettingsComponent) &&
257+
{(tab === 0 || (!SettingsComponent && !data?.internalPlugs?.length)) &&
258258
!!value?.[0]?.content?.length &&
259259
(CustomPreviewComponent ? (
260260
<CustomPreviewComponent
@@ -283,7 +283,7 @@ export const withProvider = function <T extends object>(
283283
}
284284
/>
285285
))}
286-
{SettingsComponent && (
286+
{(SettingsComponent || !!data?.internalPlugs?.length) && (
287287
<div className={tab === 1 ? '' : 'hidden'}>
288288
<SettingsComponent />
289289
{!!data?.internalPlugs?.length && (

0 commit comments

Comments
 (0)