diff --git a/messages/en-US.json b/messages/en-US.json
index 24e86a36..4d382869 100644
--- a/messages/en-US.json
+++ b/messages/en-US.json
@@ -1903,5 +1903,6 @@
"preferWildcardCertDescription": "Attempt to generate a wildcard certificate (require a properly configured certificate resolver).",
"recordName": "Record Name",
"auto": "Auto",
- "TTL": "TTL"
+ "TTL": "TTL",
+ "howToAddRecords": "How to Add Records"
}
diff --git a/src/app/[orgId]/settings/domains/[domainId]/page.tsx b/src/app/[orgId]/settings/domains/[domainId]/page.tsx
index e8187b95..791ba96d 100644
--- a/src/app/[orgId]/settings/domains/[domainId]/page.tsx
+++ b/src/app/[orgId]/settings/domains/[domainId]/page.tsx
@@ -1,8 +1,5 @@
-import { redirect } from "next/navigation";
-export default async function DomainPage(props: {
- params: Promise<{ orgId: string; domainId: string }>;
-}) {
- const params = await props.params;
- redirect(`/${params.orgId}/settings/domains/${params.domainId}`);
+
+export default function DomainPage({ children }: { children: React.ReactNode }) {
+ return <>{children}>;
}
\ No newline at end of file
diff --git a/src/components/DNSRecordTable.tsx b/src/components/DNSRecordTable.tsx
index dd9bcad4..e0760977 100644
--- a/src/components/DNSRecordTable.tsx
+++ b/src/components/DNSRecordTable.tsx
@@ -15,7 +15,7 @@ export type DNSRecordRow = {
recordType: string; // "NS" | "CNAME" | "A" | "TXT"
baseDomain: string | null;
value: string;
- verified?: boolean;
+ verified?: boolean;
};
type Props = {
@@ -32,17 +32,16 @@ export default function DNSRecordsTable({ records, domainId, isRefreshing }: Pro
accessorKey: "baseDomain",
header: ({ column }) => {
return (
-
+
);
},
cell: ({ row }) => {
const baseDomain = row.original.baseDomain;
return (
-
+
{baseDomain || "-"}
);
@@ -52,11 +51,10 @@ export default function DNSRecordsTable({ records, domainId, isRefreshing }: Pro
accessorKey: "recordType",
header: ({ column }) => {
return (
-
+
);
},
cell: ({ row }) => {
@@ -72,11 +70,10 @@ export default function DNSRecordsTable({ records, domainId, isRefreshing }: Pro
accessorKey: "ttl",
header: ({ column }) => {
return (
-
+
);
},
cell: ({ row }) => {
@@ -95,10 +92,8 @@ export default function DNSRecordsTable({ records, domainId, isRefreshing }: Pro
cell: ({ row }) => {
const value = row.original.value;
return (
-
-
- {value}
-
+
+ {value}
);
}
@@ -107,11 +102,10 @@ export default function DNSRecordsTable({ records, domainId, isRefreshing }: Pro
accessorKey: "verified",
header: ({ column }) => {
return (
-
+
);
},
cell: ({ row }) => {
diff --git a/src/components/DNSRecordsDataTable.tsx b/src/components/DNSRecordsDataTable.tsx
index 4e70a1b2..422cf318 100644
--- a/src/components/DNSRecordsDataTable.tsx
+++ b/src/components/DNSRecordsDataTable.tsx
@@ -19,7 +19,7 @@ import {
} from "@/components/ui/table";
import { Button } from "@app/components/ui/button";
import { useMemo, useState } from "react";
-import { Plus, RefreshCw } from "lucide-react";
+import { ExternalLink, Plus, RefreshCw } from "lucide-react";
import {
Card,
CardContent,
@@ -107,56 +107,25 @@ export function DNSRecordsDataTable({
-
+
-
DNS Records
+ DNS Records
Required
- {tabs && tabs.length > 0 && (
-
-
- {tabs.map((tab) => (
-
- {tab.label} (
- {data.filter(tab.filterFn).length})
-
- ))}
-
-
- )}
-
-
- {onRefresh && (
-
- )}
- {onAdd && addButtonText && (
-
- )}
+
{table.getHeaderGroups().map((headerGroup) => (
-
+
{headerGroup.headers.map((header) => (
{header.isPlaceholder
diff --git a/src/components/DomainInfoCard.tsx b/src/components/DomainInfoCard.tsx
index 0f967f33..df63e1df 100644
--- a/src/components/DomainInfoCard.tsx
+++ b/src/components/DomainInfoCard.tsx
@@ -155,7 +155,7 @@ export default function DomainInfoCard({ orgId, domainId }: DomainInfoCardProps)
<>
-
+
{t("type")}