From a5bbed6a1e6501089ea7b9e5e620df94af0aa5a2 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 18 Apr 2024 20:05:56 +0530 Subject: [PATCH] bug fixes --- src/app/pages/pagesAndPosts/ProductsPages.js | 2 +- src/app/pages/pagesAndPosts/blogPosts.js | 2 +- .../pages/pagesAndPosts/bookingAndAppointments.js | 2 +- src/app/pages/pagesAndPosts/index.js | 14 ++++++-------- src/app/pages/pagesAndPosts/sitePages.js | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/app/pages/pagesAndPosts/ProductsPages.js b/src/app/pages/pagesAndPosts/ProductsPages.js index 6bcf6614f..d04eea7fa 100644 --- a/src/app/pages/pagesAndPosts/ProductsPages.js +++ b/src/app/pages/pagesAndPosts/ProductsPages.js @@ -36,7 +36,7 @@ const ProductsPages = () => {
- { __( 'view all', 'wp-plugin-bluehost' ) } + { __( 'View all', 'wp-plugin-bluehost' ) } diff --git a/src/app/pages/pagesAndPosts/blogPosts.js b/src/app/pages/pagesAndPosts/blogPosts.js index 84eee9c55..cd5ef59c7 100644 --- a/src/app/pages/pagesAndPosts/blogPosts.js +++ b/src/app/pages/pagesAndPosts/blogPosts.js @@ -36,7 +36,7 @@ const BlogPosts = () => {
- { __( 'view all', 'wp-plugin-bluehost' ) } + { __( 'View all', 'wp-plugin-bluehost' ) } diff --git a/src/app/pages/pagesAndPosts/bookingAndAppointments.js b/src/app/pages/pagesAndPosts/bookingAndAppointments.js index 801f6136a..cfac5d7b4 100644 --- a/src/app/pages/pagesAndPosts/bookingAndAppointments.js +++ b/src/app/pages/pagesAndPosts/bookingAndAppointments.js @@ -36,7 +36,7 @@ const BookingAndAppointments = () => {
- { __( 'view all', 'wp-plugin-bluehost' ) } + { __( 'View all', 'wp-plugin-bluehost' ) } diff --git a/src/app/pages/pagesAndPosts/index.js b/src/app/pages/pagesAndPosts/index.js index 510d28dac..e32466da2 100644 --- a/src/app/pages/pagesAndPosts/index.js +++ b/src/app/pages/pagesAndPosts/index.js @@ -1,16 +1,14 @@ -import { useState } from '@wordpress/element'; import { Alert, Container, Page } from '@newfold/ui-component-library'; +import { useContext } from '@wordpress/element'; + import SitePages from './sitePages'; import BlogPosts from './blogPosts'; import BookingAndAppointments from './bookingAndAppointments'; import ProductsPages from './ProductsPages'; +import AppStore from '../../data/store'; const PagesAndPosts = () => { - const [ comingSoon, setComingSoon ] = useState( false ); - window.NewfoldRuntime.comingSoon - .isEnabled() - .then( ( res ) => setComingSoon( res ) ); - + const { store } = useContext( AppStore ); return ( { { } className={ 'wppbh-app-settings-header' } > - { comingSoon ? ( + { store?.comingSoon ? (

{ __( 'Visitors to your site will see your "Coming Soon" page and not your actual site. Visit', diff --git a/src/app/pages/pagesAndPosts/sitePages.js b/src/app/pages/pagesAndPosts/sitePages.js index d99dd5c17..2141af4dc 100644 --- a/src/app/pages/pagesAndPosts/sitePages.js +++ b/src/app/pages/pagesAndPosts/sitePages.js @@ -36,7 +36,7 @@ const SitePages = () => {

- { __( 'view all', 'wp-plugin-bluehost' ) } + { __( 'View all', 'wp-plugin-bluehost' ) }