@@ -6,10 +6,10 @@ import { URLS } from '@Common/Constants'
66import { ComponentSizeType } from '@Shared/constants'
77import { useMainContext } from '@Shared/Providers'
88
9- import { ActionMenu , ActionMenuItemType , ActionMenuProps } from '../ActionMenu'
9+ import { ActionMenu , ActionMenuItemType } from '../ActionMenu'
1010import { Button , ButtonComponentType , ButtonVariantType } from '../Button'
1111import { Icon } from '../Icon'
12- import { HelpButtonProps , HelpMenuItems , InstallationType } from './types'
12+ import { HelpButtonActionMenuProps , HelpButtonProps , HelpMenuItems , InstallationType } from './types'
1313import { getHelpActionMenuOptions } from './utils'
1414
1515const CheckForUpdates = ( {
@@ -35,12 +35,12 @@ const CheckForUpdates = ({
3535 </ div >
3636)
3737
38- export const HelpButton = ( { serverInfo, fetchingServerInfo, handleGettingStartedClick , onClick } : HelpButtonProps ) => {
38+ export const HelpButton = ( { serverInfo, fetchingServerInfo, onClick } : HelpButtonProps ) => {
3939 // STATES
4040 const [ isActionMenuOpen , setIsActionMenuOpen ] = useState ( false )
4141
4242 // HOOKS
43- const { currentServerInfo, handleOpenLicenseInfoDialog, licenseData } = useMainContext ( )
43+ const { currentServerInfo, handleOpenLicenseInfoDialog, licenseData, setGettingStartedClicked } = useMainContext ( )
4444
4545 // REFS
4646 const typeFormSliderButtonRef = useRef ( null )
@@ -69,7 +69,11 @@ export const HelpButton = ({ serverInfo, fetchingServerInfo, handleGettingStarte
6969 typeFormSliderButtonRef . current ?. open ( )
7070 }
7171
72- const handleActionMenuClick : ActionMenuProps [ 'onClick' ] = ( item ) => {
72+ const handleGettingStartedClick = ( ) => {
73+ setGettingStartedClicked ( true )
74+ }
75+
76+ const handleActionMenuClick : HelpButtonActionMenuProps [ 'onClick' ] = ( item ) => {
7377 switch ( item . id ) {
7478 case HelpMenuItems . GETTING_STARTED :
7579 handleGettingStartedClick ( )
@@ -94,7 +98,7 @@ export const HelpButton = ({ serverInfo, fetchingServerInfo, handleGettingStarte
9498
9599 return (
96100 < >
97- < ActionMenu
101+ < ActionMenu < HelpMenuItems >
98102 id = "page-header-help-action-menu"
99103 alignment = "end"
100104 width = { 220 }
0 commit comments