Skip to content

Commit

Permalink
removed top level nav
Browse files Browse the repository at this point in the history
  • Loading branch information
girish-lokapure committed Jul 23, 2024
1 parent 2cfea42 commit b972edd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 81 deletions.
5 changes: 1 addition & 4 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ public static function subpages() {
? array(
'bluehost#/staging' => __( 'Staging', 'wp-plugin-bluehost' ),
)
: array();
$products = array(
'bluehost#/products' => __( 'My Products', 'wp-plugin-bluehost' ),
);
: array();
$help = array(
'bluehost#/help' => __( 'Help', 'wp-plugin-bluehost' ),
);
Expand Down
10 changes: 0 additions & 10 deletions src/app/data/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
AdjustmentsHorizontalIcon,
BuildingStorefrontIcon,
DocumentDuplicateIcon,
Squares2X2Icon,
} from '@heroicons/react/24/outline';
import { NewfoldRuntime } from '@newfold-labs/wp-module-runtime';
import { Route, Routes } from 'react-router-dom';
Expand All @@ -22,7 +21,6 @@ import Admin from '../pages/admin';
import { getMarketplaceSubnavRoutes } from '@modules/wp-module-marketplace/components/marketplaceSubnav';
import { ReactComponent as HelpIcon } from '../components/icons/HelpIcon.svg';
import PagesAndPosts from '../pages/pages-and-posts';
import Products from '../pages/products';

const addPartialMatch = ( prefix, path ) =>
prefix === path ? `${ prefix }/*` : path;
Expand Down Expand Up @@ -75,7 +73,6 @@ const topRoutePaths = [
'/performance',
'/settings',
'/staging',
'/products',
];
const utilityRoutePaths = [ '/help' ];

Expand Down Expand Up @@ -169,13 +166,6 @@ export const routes = [
Component: Admin,
condition: true,
},
{
name: '/products',
title: __( 'My Products', 'wp-plugin-bluehost' ),
Component: Products,
Icon: Squares2X2Icon,
condition: true,
},
];

export const topRoutes = _filter( routes, ( route ) =>
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const abTestShowMyProducts = NewfoldRuntime.hasCapability(
'abTestShowMyProducts'
);

console.log( NewfoldRuntime.hasCapability( 'abTestShowMyProducts' ) );

const Home = () => {
return (
<Page className="wppbh-home">
Expand Down
65 changes: 0 additions & 65 deletions src/app/pages/products/index.js

This file was deleted.

0 comments on commit b972edd

Please sign in to comment.