Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/js/components/common/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { __ } from '@wordpress/i18n'
import { __, _x } from '@wordpress/i18n'
import classnames from 'classnames'
import React, { useState } from 'react'
import { isLicensed, shouldShowUpsell } from '../../utils/screen'
Expand Down Expand Up @@ -39,6 +39,12 @@ const UPPER_NAV_LINKS: readonly NavLink[] = [
url: window.CODE_SNIPPETS?.urls.welcome,
label: __("What's New", 'code-snippets'),
pageSlug: 'code-snippets-welcome'
},
{
name: 'import-snippets',
url: window.CODE_SNIPPETS?.urls.import,
label: _x('Import', 'snippets', 'code-snippets'),
pageSlug: 'import-code-snippets'
}
]

Expand Down
1 change: 1 addition & 0 deletions src/js/types/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ declare global {
addNew: string
edit: string
welcome: string
import: string
settings: string
cloud: string
}
Expand Down
1 change: 1 addition & 0 deletions src/php/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public function localize_script( string $handle ) {
'edit' => esc_url_raw( $this->get_menu_url( 'edit' ) ),
'addNew' => esc_url_raw( $this->get_menu_url( 'add' ) ),
'welcome' => esc_url_raw( $this->get_menu_url( 'welcome' ) ),
'import' => esc_url_raw( $this->get_menu_url( 'import' ) ),
'settings' => esc_url_raw( $this->get_menu_url( 'settings' ) ),
'cloud' => esc_url_raw( $this->cloud_connection->get_base_url() ),
],
Expand Down
Loading