Skip to content

Commit

Permalink
Create page linked WP module Solutions in BH
Browse files Browse the repository at this point in the history
  • Loading branch information
aratidgr8 committed Sep 19, 2024
1 parent cfbd2b0 commit 6b1622d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/data/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import Home from '../pages/home';
import PagesAndPosts from '../pages/pages-and-posts';
import Store from '../pages/ecommerce/page';
import Marketplace from '../pages/marketplace';
import WPSolution from '../pages/wpsolutions';
import Performance from '../pages/performance';
import Settings from '../pages/settings';
import Staging from '../pages/staging';
Expand Down Expand Up @@ -69,6 +70,7 @@ const topRoutePaths = [
'/pages-and-posts',
'/store',
'/marketplace',
'/my_plugins_and_tools',
'/performance',
'/settings',
'/staging',
Expand Down Expand Up @@ -135,6 +137,13 @@ export const routes = [
subRoutes: await getMarketplaceSubnavRoutes(),
condition: true,
},
{
name: '/my_plugins_and_tools',
title: __( 'My Plugins & Tools', 'wp-plugin-bluehost' ),
Component: WPSolution,
Icon: ShoppingBagIcon,
condition: true,
},
{
name: '/performance',
title: __( 'Performance', 'wp-plugin-bluehost' ),
Expand Down
21 changes: 21 additions & 0 deletions src/app/pages/wpsolutions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import './styles.scss';
import { Page } from '@newfold/ui-component-library';
import { NewfoldSolutions } from '@newfold-labs/wp-module-solutions';
import '@newfold-labs/wp-module-ecommerce/bluehost.css';
import { useNavigate } from 'react-router-dom';
import { useNotification } from '../../components/notifications';

const WPSolutions = () => {

const navigate = useNavigate();
const notify = useNotification();
const wpModules = { navigate, notify };

return (
<Page>
<NewfoldSolutions wpModules={ wpModules } />
</Page>
);
};

export default WPSolutions;
12 changes: 12 additions & 0 deletions src/app/pages/wpsolutions/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.nfd-root {
.nfd-modal.no-overlay {
.nfd-modal__overlay {
display: none;
}
}
.nfd-feature-upsell.hide-html {
.nfd-flex {
background-color: rgb(255 255 255 / 0.5);
}
}
}

0 comments on commit 6b1622d

Please sign in to comment.