Skip to content

Commit 48fda9d

Browse files
committed
refactor: remove unused imports, constants, and test utilities across components and tests.
1 parent d41d94b commit 48fda9d

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

src/components/Router/SuspenseRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Suspense } from "react";
2-
import { Route, RouteProps } from "react-router";
2+
import { Route } from "react-router";
33

44
import { Loading } from "@components/Loading/Loading";
55

src/constants/routes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const ROUTE_TALK_DETAIL = "/talk";
2424
export const ROUTE_WORKSHOPS = "/workshops";
2525
export const ROUTE_MEETING_DETAIL_PLAIN = "/talk/:id";
2626
export const ROUTE_TRAVEL = ":id/travel";
27-
export const ROUTE_ACCOMMODATION = "/accommodation";
2827

2928
// 2026
3029

src/tests/year-data-verification.test.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import { render } from "@testing-library/react";
2-
import React from "react";
3-
import { BrowserRouter } from "react-router-dom";
4-
import { describe, it, expect, vi, beforeEach } from "vitest";
1+
import { beforeEach, describe, expect, it, vi } from "vitest";
52

63
/**
74
* Component-level tests to verify that year-specific wrapper components

src/tests/year-path-isolation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("Year Path Isolation - Route Configuration", () => {
3434

3535
// Check for duplicates (excluding dynamic routes like :id)
3636
const staticPaths = paths.filter((p) => !p.includes(":"));
37-
const uniquePaths = new Set(staticPaths);
37+
const _uniquePaths = new Set(staticPaths);
3838

3939
// Some paths might be intentionally shared (like shared routes)
4040
// but year-specific paths should be unique

src/views/Home/components/ActionButtons/ActionButtons.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { gaEventTracker } from "../../../../components/analytics/Analytics";
55
import { formatDateWithOrdinal } from "../../../../components/date/dateUtils";
66
import Button from "../../../../components/UI/Button";
77
import { BIG_BREAKPOINT } from "../../../../constants/BreakPoints";
8-
import data from "../../../../data/2025.json";
98
import { useUrlBuilder } from "../../../../services/urlBuilder";
109

1110
import type { FC } from "react";

0 commit comments

Comments
 (0)