diff --git a/awx/ui/src/screens/Dashboard/Dashboard.js b/awx/ui/src/screens/Dashboard/Dashboard.js index 9ec35d7ba0..716aa322f4 100644 --- a/awx/ui/src/screens/Dashboard/Dashboard.js +++ b/awx/ui/src/screens/Dashboard/Dashboard.js @@ -12,6 +12,8 @@ import { } from '@patternfly/react-core'; import { InfoCircleIcon } from '@patternfly/react-icons'; +import { useConfig } from 'contexts/Config'; +import useBrandName from 'hooks/useBrandName'; import useRequest from 'hooks/useRequest'; import { DashboardAPI } from 'api'; import ScreenHeader from 'components/ScreenHeader'; @@ -42,6 +44,8 @@ const MainPageSection = styled(PageSection)` `; function Dashboard() { + const config = useConfig(); + const brandName = useBrandName(); const [activeTabId, setActiveTabId] = useState(0); const { @@ -71,15 +75,16 @@ function Dashboard() { } return ( <> - - - - A tech preview of the new Ansible Automation - Platform user interface can be found{' '} - here. - - - + {config?.ui_next && ( + + + + A tech preview of the new {brandName} user + interface can be found here. + + + + )}
- A tech preview of the new Ansible Automation - Platform user interface can be found{' '} - here. -
+ A tech preview of the new {brandName} user + interface can be found here. +