Skip to content

Commit

Permalink
refactor: redirect to onboarding on Starter Sites
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jan 9, 2025
1 parent d73cb1a commit c923d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/apps/dashboard/src/Components/Content/Start.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { withSelect } from '@wordpress/data';

const Start = (props) => {
const { setTab, tier } = props;
const { pro, whiteLabel, customizerShortcuts, tpcAdminURL } = neveDash;
const { pro, whiteLabel, customizerShortcuts, tpcOnboardingURL } = neveDash;
const starterSitesHidden = whiteLabel && whiteLabel.hideStarterSites;

const renderCustomizerLinks = () => {
Expand Down Expand Up @@ -65,7 +65,7 @@ const Start = (props) => {
{__('Go to Starter Sites', 'neve')}
</Button>
) : (
<Button href={tpcAdminURL} isPrimary>
<Button href={tpcOnboardingURL} isPrimary>
{__('Go to Starter Sites', 'neve')}
</Button>
)}
Expand Down
1 change: 1 addition & 0 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ private function get_localization() {
'hidePluginsTab' => apply_filters( 'neve_hide_useful_plugins', ! array_key_exists( 'useful_plugins', $old_about_config ) ),
'tpcPath' => defined( 'TIOB_PATH' ) ? TIOB_PATH . 'template-patterns-collection.php' : 'template-patterns-collection/template-patterns-collection.php',
'tpcAdminURL' => admin_url( 'admin.php?page=tiob-starter-sites' ),
'tpcOnboardingURL' => admin_url( 'admin.php?page=neve-onboarding' ),
'pluginsURL' => esc_url( admin_url( 'plugins.php' ) ),
'getPluginStateBaseURL' => esc_url( rest_url( '/nv/v1/dashboard/plugin-state/' ) ),
'canInstallPlugins' => current_user_can( 'install_plugins' ),
Expand Down

0 comments on commit c923d33

Please sign in to comment.