Skip to content

Commit 76cd28e

Browse files
committed
refactor: clean up components directory
1 parent 99ebb1c commit 76cd28e

35 files changed

+48
-50
lines changed

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { GeistSans } from "geist/font/sans";
44
import type { Metadata } from "next";
55
import { Suspense } from "react";
66
import { Providers } from "@/app/providers";
7-
import { AppFooter } from "@/components/app-footer";
8-
import { AppHeader } from "@/components/app-header";
7+
import { AppFooter } from "@/components/layout/app-footer";
8+
import { AppHeader } from "@/components/layout/app-header";
99
import { Toaster } from "@/components/ui/sonner";
1010
import { BASE_URL } from "@/lib/constants";
1111
import { TRPCProvider } from "@/trpc/client";

app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DomainSuggestions } from "@/components/domain/domain-suggestions";
2-
import { HomeHero } from "@/components/home-hero";
3-
import { HomeSearchSection } from "@/components/home-search-section";
2+
import { HomeHero } from "@/components/layout/home-hero";
3+
import { HomeSearchSection } from "@/components/layout/home-search-section";
44

55
export default function Home() {
66
return (
File renamed without changes.

components/domain/certificates/certificates-section.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { render, screen } from "@testing-library/react";
33
import { describe, expect, it, vi } from "vitest";
44
import { CertificatesSection, equalHostname } from "./certificates-section";
55

6-
vi.mock("@/components/favicon", () => ({
6+
vi.mock("@/components/domain/favicon", () => ({
77
Favicon: ({ domain }: { domain: string }) => (
88
<div data-testid="favicon" data-slot="favicon" data-domain={domain} />
99
),

components/domain/certificates/certificates-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
} from "lucide-react";
99
import { AnimatePresence, motion } from "motion/react";
1010
import { Fragment, useState } from "react";
11+
import { Favicon } from "@/components/domain/favicon";
1112
import { KeyValue } from "@/components/domain/key-value";
1213
import { KeyValueGrid } from "@/components/domain/key-value-grid";
1314
import { RelativeExpiryString } from "@/components/domain/relative-expiry";
1415
import { Section } from "@/components/domain/section";
15-
import { Favicon } from "@/components/favicon";
1616
import { Badge } from "@/components/ui/badge";
1717
import { Button } from "@/components/ui/button";
1818
import {

components/domain/dns/dns-record-list.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { render, screen } from "@testing-library/react";
33
import { describe, expect, it, vi } from "vitest";
44
import { DnsRecordList } from "@/components/domain/dns/dns-record-list";
55

6-
vi.mock("@/components/favicon", () => ({
6+
vi.mock("@/components/domain/favicon", () => ({
77
Favicon: ({ domain }: { domain: string }) => <div>icon:{domain}</div>,
88
}));
99

components/domain/dns/dns-record-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { useMemo } from "react";
44
import { TtlBadge } from "@/components/domain/dns/ttl-badge";
5+
import { Favicon } from "@/components/domain/favicon";
56
import { KeyValue } from "@/components/domain/key-value";
6-
import { Favicon } from "@/components/favicon";
77
import {
88
Tooltip,
99
TooltipContent,

components/domain/domain-report-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import { ExternalLink } from "lucide-react";
44
import { ExportButton } from "@/components/domain/export-button";
5+
import { Favicon } from "@/components/domain/favicon";
56
import { ScreenshotTooltip } from "@/components/domain/screenshot-tooltip";
67
import { ToolsDropdown } from "@/components/domain/tools-dropdown";
7-
import { Favicon } from "@/components/favicon";
88
import { captureClient } from "@/lib/analytics/client";
99

1010
interface DomainReportHeaderProps {

components/domain/domain-report-view.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ vi.mock("@/components/domain/export-button", () => ({
9696
),
9797
}));
9898

99-
vi.mock("@/components/favicon", () => ({
99+
vi.mock("@/components/domain/favicon", () => ({
100100
Favicon: () => <div>Favicon</div>,
101101
}));
102102

components/domain/domain-suggestions-client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import { X } from "lucide-react";
44
import { useEffect, useMemo, useRef, useState } from "react";
5-
import { Favicon } from "@/components/favicon";
6-
import { useHomeSearch } from "@/components/home-search-context";
5+
import { Favicon } from "@/components/domain/favicon";
6+
import { useHomeSearch } from "@/components/layout/home-search-context";
77
import { Button } from "@/components/ui/button";
88
import {
99
Tooltip,

0 commit comments

Comments
 (0)