diff --git a/awx/ui_next/src/components/AdHocCommands/AdHocDetailsStep.js b/awx/ui_next/src/components/AdHocCommands/AdHocDetailsStep.js
index ca129f4050..0bb20ce921 100644
--- a/awx/ui_next/src/components/AdHocCommands/AdHocDetailsStep.js
+++ b/awx/ui_next/src/components/AdHocCommands/AdHocDetailsStep.js
@@ -22,7 +22,9 @@ const TooltipWrapper = styled.div`
`;
function AdHocDetailsStep({ verbosityOptions, moduleOptions }) {
- const brandName = useBrandName();
+ const {
+ current: { brandName },
+ } = useBrandName();
const [moduleNameField, moduleNameMeta, moduleNameHelpers] = useField({
name: 'module_name',
validate: required(null),
@@ -65,7 +67,7 @@ function AdHocDetailsStep({ verbosityOptions, moduleOptions }) {
}
labelIcon={
}
>
diff --git a/awx/ui_next/src/screens/Project/shared/ProjectSubForms/ManualSubForm.js b/awx/ui_next/src/screens/Project/shared/ProjectSubForms/ManualSubForm.js
index 44bde1b09d..306cfb5435 100644
--- a/awx/ui_next/src/screens/Project/shared/ProjectSubForms/ManualSubForm.js
+++ b/awx/ui_next/src/screens/Project/shared/ProjectSubForms/ManualSubForm.js
@@ -14,7 +14,9 @@ const ManualSubForm = ({
project_base_dir,
project_local_paths,
}) => {
- const brandName = useBrandName();
+ const {
+ current: { brandName },
+ } = useBrandName();
const localPaths = [...new Set([...project_local_paths, localPath])];
const options = [
{
@@ -49,7 +51,7 @@ const ManualSubForm = ({
Either that directory is empty, or all of the contents are already
assigned to other projects. Create a new directory there and make
sure the playbook files can be read by the "awx" system user,
- or have ${brandName.current} directly retrieve your playbooks from
+ or have ${brandName} directly retrieve your playbooks from
source control using the Source Control Type option above.`}
)}
diff --git a/awx/ui_next/src/screens/Setting/SettingList.js b/awx/ui_next/src/screens/Setting/SettingList.js
index 750a093466..ed3ffec4ac 100644
--- a/awx/ui_next/src/screens/Setting/SettingList.js
+++ b/awx/ui_next/src/screens/Setting/SettingList.js
@@ -45,11 +45,13 @@ const CardDescription = styled.div`
function SettingList() {
const config = useConfig();
- const brandName = useBrandName();
+ const {
+ current: { brandName },
+ } = useBrandName();
const settingRoutes = [
{
header: t`Authentication`,
- description: t`Enable simplified login for your ${brandName.current} applications`,
+ description: t`Enable simplified login for your ${brandName} applications`,
id: 'authentication',
routes: [
{
@@ -84,7 +86,7 @@ function SettingList() {
},
{
header: t`Jobs`,
- description: t`Update settings pertaining to Jobs within ${brandName.current}`,
+ description: t`Update settings pertaining to Jobs within ${brandName}`,
id: 'jobs',
routes: [
{
diff --git a/awx/ui_next/src/screens/Template/shared/JobTemplateForm.js b/awx/ui_next/src/screens/Template/shared/JobTemplateForm.js
index 961a1a0780..0508e06cc7 100644
--- a/awx/ui_next/src/screens/Template/shared/JobTemplateForm.js
+++ b/awx/ui_next/src/screens/Template/shared/JobTemplateForm.js
@@ -66,7 +66,9 @@ function JobTemplateForm({
Boolean(template.webhook_service)
);
const isMounted = useIsMounted();
- const brandName = useBrandName();
+ const {
+ current: { brandName },
+ } = useBrandName();
const [askInventoryOnLaunchField] = useField('ask_inventory_on_launch');
const [jobTypeField, jobTypeMeta, jobTypeHelpers] = useField({
@@ -566,7 +568,7 @@ function JobTemplateForm({