Skip to content

chore(brands): remove unused imports in brand settings page - #323

Merged
gkhngyk merged 1 commit into
mainfrom
chore/brand-settings-unused-imports
Jun 30, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
chore/brand-settings-unused-imports

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes dead imports from the brand settings page (web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx):

  • Pencil, X (from lucide-react)
  • DialogTrigger, DialogClose (from @/components/ui/dialog)

These were flagged as @typescript-eslint/no-unused-vars warnings (not errors, so they slipped through CI).

While in the file, I also removed a pre-existing unused isCloud local in TrackingTab (const isCloud = process.env.NEXT_PUBLIC_IS_CLOUD === 'true' — assigned but never used). The issue's goal is a quiet lint output for this file, and leaving it would have kept one no-unused-vars warning; it's the same class of dead code and zero-use, so removing it is safe. The file now lints clean.

No behavior change.

Related issue

Closes #293

Type of change

  • chore — Maintenance / dependencies

How to test

  1. yarn lint from web/ → no no-unused-vars warnings for settings/page.tsx.
  2. Open a brand's settings page — every tab (General, Domains, Tracking, Competitors, Danger) renders and behaves exactly as before.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Drop the dead Pencil / X (lucide-react) and DialogTrigger / DialogClose
(@/components/ui/dialog) imports flagged by no-unused-vars. Also removed a
pre-existing unused `isCloud` local in TrackingTab so the file's lint
output is fully quiet. No behavior change.
@gkhngyk
gkhngyk merged commit 94e03df into main Jun 30, 2026
4 checks passed
@gkhngyk
gkhngyk deleted the chore/brand-settings-unused-imports branch June 30, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(brands): remove unused imports in brand settings page

1 participant