From f6ab23fa03e94cbd91704c54219366ae7e6fc9ef Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 11 Sep 2025 14:27:19 +0200 Subject: [PATCH] Linting refactor (#1197) --- .../src/entrypoints/popup/components/Logo.tsx | 5 ++++- .../src/entrypoints/popup/context/NavigationContext.tsx | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/browser-extension/src/entrypoints/popup/components/Logo.tsx b/apps/browser-extension/src/entrypoints/popup/components/Logo.tsx index e4ebfe516..e3bc65af9 100644 --- a/apps/browser-extension/src/entrypoints/popup/components/Logo.tsx +++ b/apps/browser-extension/src/entrypoints/popup/components/Logo.tsx @@ -1,6 +1,6 @@ import React from 'react'; -interface LogoProps { +type LogoProps = { className?: string; width?: number; height?: number; @@ -8,6 +8,9 @@ interface LogoProps { color?: string; } +/** + * Logo component. + */ const Logo: React.FC = ({ className = '', width = 200, diff --git a/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx b/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx index 6eb728dac..d1526415b 100644 --- a/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx +++ b/apps/browser-extension/src/entrypoints/popup/context/NavigationContext.tsx @@ -56,8 +56,10 @@ export const NavigationProvider: React.FC<{ children: React.ReactNode }> = ({ ch for (let i = 0; i < segments.length; i++) { currentPath += '/' + segments[i]; - // For settings subpages, include both /settings and the subpage - // For email details, include both /emails and the specific email + /* + * For settings subpages, include both /settings and the subpage + * For email details, include both /emails and the specific email + */ historyEntries.push({ pathname: currentPath, search: location.search,