Skip to content

Commit

Permalink
Fix typo (Boost, not Booster!)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaurdan committed Nov 13, 2024
1 parent 7fc23ee commit 9a5bad2
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build/content-helper/dashboard-page.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-dom-ready', 'wp-element'), 'version' => 'c1dcd33bfbf33022ed91');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-dom-ready', 'wp-element'), 'version' => '18278c930ac085311870');
2 changes: 1 addition & 1 deletion build/content-helper/dashboard-page.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/UI/class-dashboard-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public function add_dashboard_page_to_menu(): void {

add_submenu_page(
'parsely-dashboard-page',
'Parse.ly Traffic Booster',
'Traffic Booster',
'Parse.ly Traffic Boost',
'Traffic Boost',
Parsely::CAPABILITY, // phpcs:ignore WordPress.WP.Capabilities.Undetermined
'parsely-dashboard-page#/traffic-booster',
'parsely-dashboard-page#/traffic-boost',
'__return_null'
);

Expand Down
4 changes: 2 additions & 2 deletions src/content-helper/dashboard-page/dashboard-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { HashRouter as Router, Route, Routes, useLocation } from 'react-router-d
/**
* Internal dependencies
*/
import { DashboardPage, SettingsPage, TrafficBoosterPage } from './pages';
import { DashboardPage, SettingsPage, TrafficBoostPage } from './pages';

domReady( () => {
const root = createRoot(
Expand Down Expand Up @@ -77,7 +77,7 @@ const ParselyDashboard = () => {
return (
<Routes>
<Route path="/" element={ <DashboardPage /> } />
<Route path="/traffic-booster" element={ <TrafficBoosterPage /> } />
<Route path="/traffic-boost" element={ <TrafficBoostPage /> } />
<Route path="/settings" element={ <SettingsPage /> } />
</Routes>
);
Expand Down
2 changes: 1 addition & 1 deletion src/content-helper/dashboard-page/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { DashboardPage } from './dashboard/page-component';
export { TrafficBoosterPage } from './traffic-booster/page-component';
export { TrafficBoostPage } from './traffic-boost/page-component';
export { SettingsPage } from './settings/page-component';
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Traffic Boost page component.
*
* @since 3.18.0
*/
export const TrafficBoostPage = () => {
return (
<>
<h1>Traffic Boost</h1>
<p>This is where the amazing Traffic Boost implementation will live.</p>
</>
);
};

This file was deleted.

0 comments on commit 9a5bad2

Please sign in to comment.