11import * as React from 'react' ;
22import PropTypes from 'prop-types' ;
3- import {
4- Alert ,
5- AlertActionCloseButton ,
6- Grid ,
7- GridItem ,
8- Page ,
9- PageSection ,
10- PageSectionVariants ,
11- Tabs ,
12- Tab ,
13- TabContent
14- } from '@patternfly/react-core' ;
3+ import { Grid , GridItem , Page , PageSection , PageSectionVariants , Tabs , Tab , TabContent } from '@patternfly/react-core' ;
154import { noop } from '../../common/helpers' ;
165import TutorialDashboard from '../../components/tutorialDashboard/tutorialDashboard' ;
176import InstalledAppsView from '../../components/installedAppsView/InstalledAppsView' ;
@@ -34,8 +23,7 @@ class LandingPage extends React.Component {
3423 this . handleLoad = this . handleLoad . bind ( this ) ;
3524 this . state = {
3625 activeTabKey : 0 ,
37- currentUserName : null ,
38- showInfoAlert : true
26+ currentUserName : null
3927 } ;
4028
4129 // Toggle currently active tab
@@ -45,11 +33,6 @@ class LandingPage extends React.Component {
4533 activeTabKey : tabIndex
4634 } ) ;
4735 } ;
48-
49- this . onAlertClose = ( ) => {
50- window . localStorage . setItem ( 'showInfoAlert' , 'false' ) ;
51- this . setState ( { showInfoAlert : false } ) ;
52- } ;
5336 }
5437
5538 componentDidMount ( ) {
@@ -100,38 +83,15 @@ class LandingPage extends React.Component {
10083
10184 render ( ) {
10285 const { walkthroughServices, middlewareServices, user } = this . props ;
103- const { showInfoAlert } = this . state ;
10486 const launchFn = isOpenShift4 ( ) ? this . handleServiceLaunchV4 . bind ( this ) : this . handleServiceLaunch . bind ( this ) ;
10587 const openshiftHost = getOpenshiftHost ( middlewareServices ) ;
10688 this . contentRef1 = React . createRef ( ) ;
10789 this . contentRef2 = React . createRef ( ) ;
10890
109- // show settings alert on first render
110- if ( window . localStorage . getItem ( 'showInfoAlert' ) === null ) window . localStorage . setItem ( 'showInfoAlert' , true ) ;
111-
112- const isAlertOpen = window . localStorage . getItem ( 'showInfoAlert' ) === 'true' ;
113-
11491 return (
11592 < Page className = "pf-u-h-100vh" onLoad = { this . handleLoad } >
11693 < RoutedConnectedMasthead currentUserName = { this . state . currentUserName } />
11794 < PageSection variant = { PageSectionVariants . light } className = "pf-u-py-0 pf-u-pl-lg pf-u-pr-0" >
118- { showInfoAlert &&
119- isAlertOpen && (
120- < Alert
121- className = "info-alert"
122- variant = "info"
123- isInline
124- title = "Managed Integration Schedule Available"
125- actionClose = { < AlertActionCloseButton onClose = { this . onAlertClose } /> }
126- >
127- < p >
128- You can now schedule your daily backups, weekly maintenance window, and Managed Integration upgrades
129- from the Settings page. Review the default settings to ensure they are appropriate for your cluster.
130- </ p >
131- < br />
132- < a href = "/settings" > Go to settings</ a >
133- </ Alert >
134- ) }
13595 < h1 className = "pf-c-title pf-m-4xl pf-c-landing__heading" > Welcome to the Solution Explorer</ h1 >
13696 < p className = "pf-c-landing__content" >
13797 Quickly access consoles for all your Red Hat managed services, and learn how to easily implement
0 commit comments