Skip to content

Commit

Permalink
Merge pull request #1321 from bluehost/PRESS0-1723
Browse files Browse the repository at this point in the history
WP Admin | Branded Plugin | Solutions Entitlements Page
  • Loading branch information
circlecube authored Oct 2, 2024
2 parents f94f7e8 + 8dfcac7 commit 40aa209
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/data/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
AdjustmentsHorizontalIcon,
BuildingStorefrontIcon,
DocumentDuplicateIcon,
PuzzlePieceIcon,
} from '@heroicons/react/24/outline';
import { ReactComponent as HelpIcon } from '../components/icons/HelpIcon.svg';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
Expand All @@ -15,6 +16,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 +71,7 @@ const topRoutePaths = [
'/pages-and-posts',
'/store',
'/marketplace',
'/my_plugins_and_tools',
'/performance',
'/settings',
'/staging',
Expand Down Expand Up @@ -135,6 +138,13 @@ export const routes = [
subRoutes: await getMarketplaceSubnavRoutes(),
condition: true,
},
{
name: '/my_plugins_and_tools',
title: __( 'My Plugins & Tools', 'wp-plugin-bluehost' ),
Component: WPSolution,
Icon: PuzzlePieceIcon,
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 40aa209

Please sign in to comment.