+
}>
{ hasError &&
}
-
{ ( true === booted &&
) ||
( ! hasError &&
) }
@@ -113,7 +116,6 @@ export const App = () => (
diff --git a/src/app/pages/help/index.js b/src/app/pages/help/index.js
index 4e9facee..119a2767 100644
--- a/src/app/pages/help/index.js
+++ b/src/app/pages/help/index.js
@@ -26,7 +26,7 @@ const HelpCard = ( { item } ) => {
@@ -55,16 +55,23 @@ const Help = () => {
};
return (
-
-
+ { __( 'Help', 'wp-plugin-hostgator' ) }
+
+ { __(
'We are available 24/7 to help answer questions and solve your problems.',
'wp-plugin-hostgator'
) }
- />
-
- { renderHelpCards() }
+
+
+
+
+ { renderHelpCards() }
+
);
diff --git a/src/app/pages/home/index.js b/src/app/pages/home/index.js
index 4f8713af..8e7fd87b 100644
--- a/src/app/pages/home/index.js
+++ b/src/app/pages/home/index.js
@@ -1,4 +1,4 @@
-import { Container, Page } from '@newfold/ui-component-library';
+import { Container, Page, Title } from '@newfold/ui-component-library';
import ComingSoon from '../settings/comingSoon';
import FreePluginsSection from './freeAddonsSection';
import SettingsSection from './settingsSection';
@@ -9,11 +9,23 @@ import WebinarsBanner from 'App/components/webinars-banner';
const Home = () => {
return (
-
+
+
+
+ { __( 'Welcome to HostGator', 'wp-plugin-hostgator' ) }
+
+
+ { __(
+ "We're very excited to get started with you!",
+ 'wp-plugin-hostgator'
+ ) }
+
+
-
+
+
{
{ __(
diff --git a/src/app/pages/marketplace/index.js b/src/app/pages/marketplace/index.js
index bf9672d0..e73605b3 100644
--- a/src/app/pages/marketplace/index.js
+++ b/src/app/pages/marketplace/index.js
@@ -1,7 +1,7 @@
import apiFetch from '@wordpress/api-fetch';
import { useState, useEffect } from '@wordpress/element';
import { useLocation, useMatch, useNavigate } from 'react-router-dom';
-import { Container, Page } from '@newfold/ui-component-library';
+import { Page } from '@newfold/ui-component-library';
import { NewfoldRuntime } from '@newfold/wp-module-runtime';
// component sourced from marketplace module
import { default as NewfoldMarketplace } from '@modules/wp-module-marketplace/components/';
@@ -53,12 +53,10 @@ const MarketplacePage = () => {
return (
-
-
-
+
);
};
diff --git a/src/app/pages/pages-and-posts/ProductsPages.js b/src/app/pages/pages-and-posts/ProductsPages.js
deleted file mode 100644
index b8601abf..00000000
--- a/src/app/pages/pages-and-posts/ProductsPages.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { Button, Card, Title } from '@newfold/ui-component-library';
-
-const ProductsPages = () => {
- return (
-
-
-
-
-
-
-
- {__('Products', 'wp-plugin-hostgator')}
-
-
- {__(
- 'Showcase physical and digital goods, product variations, and custom configurations.',
- 'wp-plugin-hostgator'
- )}
-
-
-
-
- );
-};
-
-export default ProductsPages;
diff --git a/src/app/pages/pages-and-posts/blogPosts.js b/src/app/pages/pages-and-posts/blogPosts.js
deleted file mode 100644
index 668f92e4..00000000
--- a/src/app/pages/pages-and-posts/blogPosts.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { Button, Card, Title } from '@newfold/ui-component-library';
-
-const BlogPosts = () => {
- return (
-
-
-
-
-
-
-
- {__('Blog Posts', 'wp-plugin-hostgator')}
-
-
- {__(
- 'Add a new blog post or edit your existing posts.',
- 'wp-plugin-hostgator'
- )}
-
-
-
-
- );
-};
-
-export default BlogPosts;
diff --git a/src/app/pages/pages-and-posts/bookingAndAppointments.js b/src/app/pages/pages-and-posts/bookingAndAppointments.js
deleted file mode 100644
index 3f7fedd6..00000000
--- a/src/app/pages/pages-and-posts/bookingAndAppointments.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { Button, Card, Title } from '@newfold/ui-component-library';
-
-const BookingAndAppointments = () => {
- return (
-
-
-
-
-
-
-
- {__('Bookings & Appointments', 'wp-plugin-hostgator')}
-
-
- {__(
- 'Add your list of services, setup a booking calendar, and edit your bookings form.',
- 'wp-plugin-hostgator'
- )}
-
-
-
-
- );
-};
-
-export default BookingAndAppointments;
diff --git a/src/app/pages/pages-and-posts/index.js b/src/app/pages/pages-and-posts/index.js
deleted file mode 100644
index c48ca747..00000000
--- a/src/app/pages/pages-and-posts/index.js
+++ /dev/null
@@ -1,84 +0,0 @@
-import AppStore from '../../data/store';
-import { useContext } from '@wordpress/element';
-import { Alert, Container, Page } from '@newfold/ui-component-library';
-import SitePages from './sitePages';
-import BlogPosts from './blogPosts';
-import BookingAndAppointments from './bookingAndAppointments';
-import ProductsPages from './ProductsPages';
-
-const PagesAndPosts = () => {
- const { store } = useContext(AppStore);
-
- return (
-
-
-
- {__('Your site is not live.', 'wp-plugin-hostgator')}
-
- ) : (
-
-
- {__(
- 'Your site is live.',
- 'wp-plugin-hostgator'
- )}
-
-
- )
- }
- className={'hgwp-app-settings-header'}
- >
- {store?.comingSoon ? (
-
- {__(
- 'Visitors to your site will see your "Coming Soon" page and not your actual site. Visit ',
- 'wp-plugin-hostgator'
- )}
-
- {__('"Settings"', 'wp-plugin-hostgator')}
-
- {__(
- ' to set your site live.',
- 'wp-plugin-hostgator'
- )}
-
- ) : (
-
- {__(
- 'Visitors to your site will see all your publicly published pages.',
- 'wp-plugin-hostgator'
- )}
-
- )}
-
-
-
-
-
- {window.NewfoldRuntime.isYithBookingActive &&
- window.NewfoldRuntime.isWoocommerceActive && (
-
- )}
- {window.NewfoldRuntime.isWoocommerceActive && (
-
- )}
-
-
-
- );
-};
-
-export default PagesAndPosts;
diff --git a/src/app/pages/pages-and-posts/sitePages.js b/src/app/pages/pages-and-posts/sitePages.js
deleted file mode 100644
index ad8e4444..00000000
--- a/src/app/pages/pages-and-posts/sitePages.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import { Button, Card, Title } from '@newfold/ui-component-library';
-
-const SitePages = () => {
- return (
-
-
-
-
-
-
-
- {__('Site Pages', 'wp-plugin-hostgator')}
-
-
- {__(
- 'Edit your homepage and other existing pages or add new pages to your site.',
- 'wp-plugin-hostgator'
- )}
-
-
-
-
- );
-};
-
-export default SitePages;
diff --git a/src/app/pages/performance/index.js b/src/app/pages/performance/index.js
deleted file mode 100644
index 634117af..00000000
--- a/src/app/pages/performance/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-import AppStore from '../../data/store';
-import { Container, Page } from '@newfold/ui-component-library';
-import { useState, useEffect, useContext, Fragment } from '@wordpress/element';
-import apiFetch from '@wordpress/api-fetch';
-import { __, sprintf } from '@wordpress/i18n';
-import { useUpdateEffect } from 'react-use';
-import { NewfoldRuntime } from '@newfold/wp-module-runtime';
-import { useNotification } from 'App/components/notifications';
-import {
- hostgatorSettingsApiFetch as newfoldSettingsApiFetch,
- hostgatorPurgeCacheApiFetch as newfoldPurgeCacheApiFetch,
-} from '../../util/helpers';
-
-import { default as NewfoldPerformance } from '../../../../vendor/newfold-labs/wp-module-performance/components/performance/';
-
-const PerformancePage = () => {
- // constants to pass to module
- const moduleConstants = {
- text: {},
- };
-
- // methods to pass to module
- const moduleMethods = {
- apiFetch,
- useState,
- useEffect,
- useContext,
- NewfoldRuntime,
- useNotification,
- newfoldSettingsApiFetch,
- newfoldPurgeCacheApiFetch,
- useUpdateEffect,
- AppStore,
- };
-
- const moduleComponents = {
- Fragment,
- };
-
- return (
-
-
-
-
-
-
- );
-};
-
-export default PerformancePage;
diff --git a/src/app/pages/settings/helpCenterSettings.js b/src/app/pages/settings/helpCenterSettings.js
index 7af878e3..1a4a7445 100644
--- a/src/app/pages/settings/helpCenterSettings.js
+++ b/src/app/pages/settings/helpCenterSettings.js
@@ -70,7 +70,12 @@ const HelpCenterSettings = ( { forceShow = false } ) => {
helpCenter,
} );
notifySuccess( getHelpCenterNoticeTitle, getHelpCenterNoticeText );
- updateUI( '#wp-admin-bar-help-center', helpCenter );
+ updateUI(
+ '#wp-admin-bar-help-center',
+ helpCenter,
+ 'nfd-disabled',
+ true
+ );
}, [ helpCenter ] );
return (
diff --git a/src/app/pages/settings/index.js b/src/app/pages/settings/index.js
index ff6651e3..6ada252d 100644
--- a/src/app/pages/settings/index.js
+++ b/src/app/pages/settings/index.js
@@ -1,4 +1,4 @@
-import { Container, Page } from '@newfold/ui-component-library';
+import { Container, Page, Title } from '@newfold/ui-component-library';
import ComingSoon from './comingSoon';
import AutomaticUpdates from './automaticUpdates';
import HelpCenterSettings from './helpCenterSettings';
@@ -9,15 +9,21 @@ import ContentSettings from './contentSettings';
const Settings = () => {
return (
-
-
+
+ { __( 'Settings', 'wp-plugin-hostgator' ) }
+
+
+ { __(
'This is where you can manage common settings for your website.',
'wp-plugin-hostgator'
) }
- className={ 'hgwp-app-settings-header' }
- />
+
+
+