mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
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:
parent
75aed6f933
commit
54f7a29345
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user