Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Apr 18, 2024
1 parent 4d4fc65 commit a5bbed6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/pagesAndPosts/ProductsPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ProductsPages = () => {
</Card.Content>
<div className="nfd-flex nfd-justify-end nfd-gap-6 nfd-items-center">
<a href="edit.php?post_type=product">
{ __( 'view all', 'wp-plugin-bluehost' ) }
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="post-new.php?post_type=product">
<Button>{ __( 'Add New', 'wp-plugin-bluehost' ) }</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/pagesAndPosts/blogPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const BlogPosts = () => {
</Card.Content>
<div className="nfd-flex nfd-justify-end nfd-gap-6 nfd-items-center">
<a href="edit.php">
{ __( 'view all', 'wp-plugin-bluehost' ) }
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="post-new.php">
<Button>{ __( 'Add New', 'wp-plugin-bluehost' ) }</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/pagesAndPosts/bookingAndAppointments.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const BookingAndAppointments = () => {
</Card.Content>
<div className="nfd-flex nfd-justify-end nfd-gap-6 nfd-items-center">
<a href="edit.php?post_type=yith_booking&yith-plugin-fw-panel-skip-redirect=1">
{ __( 'view all', 'wp-plugin-bluehost' ) }
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="edit.php?post_type=yith_booking&yith-plugin-fw-panel-skip-redirect=1">
<Button>{ __( 'Add New', 'wp-plugin-bluehost' ) }</Button>
Expand Down
14 changes: 6 additions & 8 deletions src/app/pages/pagesAndPosts/index.js
Original file line number Diff line number Diff line change
@@ -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 (
<Page
title="Pages & Posts"
Expand All @@ -20,7 +18,7 @@ const PagesAndPosts = () => {
<Container.Header
title={ __( 'Pages & Posts', 'wp-plugin-bluehost' ) }
description={
comingSoon ? (
store?.comingSoon ? (
<Alert
variant="warning"
className="nfd-text-sm nfd-bg-transparent nfd-p-0 "
Expand Down Expand Up @@ -48,7 +46,7 @@ const PagesAndPosts = () => {
}
className={ 'wppbh-app-settings-header' }
>
{ comingSoon ? (
{ store?.comingSoon ? (
<p>
{ __(
'Visitors to your site will see your "Coming Soon" page and not your actual site. Visit',
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/pagesAndPosts/sitePages.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const SitePages = () => {
</Card.Content>
<div className="nfd-flex nfd-justify-end nfd-gap-6 nfd-items-center">
<a href="edit.php?post_type=page">
{ __( 'view all', 'wp-plugin-bluehost' ) }
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="post-new.php?post_type=page">
<Button onClick>
Expand Down

0 comments on commit a5bbed6

Please sign in to comment.