1- import React , { FC , useEffect } from 'react'
2- import { useSelector , useDispatch } from 'react-redux'
1+ import React , { CSSProperties , FC , useEffect } from 'react'
2+ import { useDispatch , useSelector } from 'react-redux'
33import { Link } from 'react-router-dom'
44
55import {
@@ -14,6 +14,7 @@ import {
1414 Icon ,
1515 IconFont ,
1616 InfluxColors ,
17+ JustifyContent ,
1718 Page ,
1819 ResourceCard ,
1920 SquareGrid ,
@@ -64,6 +65,11 @@ export const HomepageContainer: FC = () => {
6465 const cardStyle = { minWidth : '200px' }
6566 const linkStyle = { color : InfluxColors . Grey75 }
6667 const moreStyle = { height : '100%' , ...linkStyle }
68+ // checks for
69+ const inlineViewMoreStyle = {
70+ marginTop : '8px' ,
71+ visibility : isFlagEnabled ( 'onboardArduino' ) ? 'visible' : 'hidden' ,
72+ } as CSSProperties
6773
6874 const squareGridCardSize = '200px'
6975
@@ -188,23 +194,34 @@ export const HomepageContainer: FC = () => {
188194 </ Link >
189195 </ ResourceCard >
190196 ) }
191- < ResourceCard style = { cardStyle } >
192- < Link
193- to = { loadDataSourcesLink }
194- style = { moreStyle }
195- onClick = { logMoreButtonClick }
196- >
197- < div className = "homepage-wizard-language-tile" >
198- < span >
199- < h5 >
200- MORE < Icon glyph = { IconFont . ArrowRight_New } />
201- </ h5 >
202- </ span >
203- </ div >
204- </ Link >
205- </ ResourceCard >
197+ { ! isFlagEnabled ( 'onboardArduino' ) && (
198+ < ResourceCard style = { cardStyle } >
199+ < Link
200+ to = { loadDataSourcesLink }
201+ style = { moreStyle }
202+ onClick = { logMoreButtonClick }
203+ >
204+ < div className = "homepage-wizard-language-tile" >
205+ < span >
206+ < h5 >
207+ MORE < Icon glyph = { IconFont . ArrowRight_New } />
208+ </ h5 >
209+ </ span >
210+ </ div >
211+ </ Link >
212+ </ ResourceCard >
213+ ) }
206214 </ SquareGrid >
207- < hr style = { { marginTop : '32px' } } />
215+ < FlexBox justifyContent = { JustifyContent . FlexStart } >
216+ < Link
217+ to = { loadDataSourcesLink }
218+ onClick = { logMoreButtonClick }
219+ style = { inlineViewMoreStyle }
220+ >
221+ View more
222+ </ Link >
223+ </ FlexBox >
224+ < hr style = { { marginTop : '8px' } } />
208225 < Link
209226 to = { cliPageLink }
210227 style = { linkStyle }
0 commit comments