Fixed sidebar order of Newsletters section - X (#18493)

refs https://ghost.slack.com/archives/C0568LN2CGJ/p1696490815762949

- Fixed a tiny issue where the Sidebar Navigation doesn't align with the
newsletter options.
- Got rid of some unused commented out code that's not needed.
This commit is contained in:
Ronald Langeveld 2023-10-05 15:20:18 +07:00 committed by GitHub
parent d1b92a04a3
commit 929d05a33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 13 deletions

View File

@ -5,18 +5,6 @@ import EmailSettings from './settings/email/EmailSettings';
import GeneralSettings from './settings/general/GeneralSettings';
import MembershipSettings from './settings/membership/MembershipSettings';
import SiteSettings from './settings/site/SiteSettings';
// import UnsplashSearchModal from '../utils/unsplash/UnsplashSearchModal';
// const API_VERSION = 'v1';
// const API_TOKEN = '8672af113b0a8573edae3aa3713886265d9bb741d707f6c01a486cde8c278980';
// export const defaultHeaders = {
// Authorization: `Client-ID ${API_TOKEN}`,
// 'Accept-Version': API_VERSION,
// 'Content-Type': 'application/json',
// 'App-Pragma': 'no-cache',
// 'X-Unsplash-Cache': true
// };
const Settings: React.FC = () => {
return (

View File

@ -106,8 +106,8 @@ const Sidebar: React.FC = () => {
<SettingNavItem keywords={emailSearchKeywords.enableNewsletters} navid='enable-newsletters' title="Newsletter sending" onClick={handleSectionClick} />
{newslettersEnabled !== 'disabled' && (
<>
<SettingNavItem keywords={emailSearchKeywords.newsletters} navid='newsletters' title="Newsletters" onClick={handleSectionClick} />
<SettingNavItem keywords={emailSearchKeywords.defaultRecipients} navid='default-recipients' title="Default recipients" onClick={handleSectionClick} />
<SettingNavItem keywords={emailSearchKeywords.newsletters} navid='newsletters' title="Newsletters" onClick={handleSectionClick} />
{!config.mailgunIsConfigured && <SettingNavItem keywords={emailSearchKeywords.mailgun} navid='mailgun' title="Mailgun settings" onClick={handleSectionClick} />}
</>
)}