console: removing the existing onboarding with neon launch

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6091
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 740ab4545420db754b2ea4d4ae904180b8f51bbe
This commit is contained in:
nevermore 2022-09-30 11:31:59 +05:30 committed by hasura-bot
parent 75aed6f933
commit 54f7a29345

View File

@ -2,6 +2,7 @@ import React, { useMemo } from 'react';
import { Link } from 'react-router';
import { FaExternalLinkAlt, FaDatabase } from 'react-icons/fa';
import { Button } from '@/new-components/Button';
import { isCloudConsole, hasLuxFeatureAccess } from '@/utils/cloudConsole';
import YouTube from 'react-youtube';
@ -145,7 +146,13 @@ const Onboarding: React.FC<OnboardingProps> = ({
React.useEffect(() => {
const show = getLSItem(LS_KEYS.showConsoleOnboarding) || 'true';
setVisible(show === 'true');
const hasNeonAccess =
isCloudConsole(globals) &&
hasLuxFeatureAccess(globals, 'NeonDatabaseIntegration') &&
globals.neonOAuthClientId &&
globals.neonRootDomain;
setVisible(show === 'true' && hasNeonAccess === 'false');
}, []);
const togglePopup = () => {