Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix duplicate export name

Tim Wilsonb38b36794913
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/page-client.tsx
index b65077b569..bae61258a6 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/page-client.tsx
@@ -22,7 +22,7 @@ import {
TooltipContent,
useRouterStuff,
} from "@dub/ui";
-import { CloudUpload, Download, Table, Tag } from "@dub/ui/src/icons";
+import { CloudUpload, Download, TableIcon, Tag } from "@dub/ui/src/icons";
import { useRouter } from "next/navigation";
import {
Dispatch,
@@ -250,7 +250,7 @@ const MoreLinkOptions = () => {
>
<IconMenu
text="Import from CSV"
- icon={<Table className="h-4 w-4" />}
+ icon={<TableIcon className="size-4" />}
/>
</ImportOption>
</div>
diff --git a/apps/web/ui/modals/import-csv-modal/field-mapping.tsx b/apps/web/ui/modals/import-csv-modal/field-mapping.tsx
index f9a342b0e1..0368a38335 100644
--- a/apps/web/ui/modals/import-csv-modal/field-mapping.tsx
+++ b/apps/web/ui/modals/import-csv-modal/field-mapping.tsx
@@ -1,5 +1,5 @@
import { Button, IconMenu, Popover } from "@dub/ui";
-import { Check, Table } from "@dub/ui/src/icons";
+import { Check, TableIcon } from "@dub/ui/src/icons";
import { ChevronDown } from "lucide-react";
import { useState } from "react";
import { Controller } from "react-hook-form";
@@ -53,7 +53,7 @@ function FieldRow({ field }: { field: keyof typeof mappableFields }) {
>
<IconMenu
text={column}
- icon={<Table className="h-4 w-4" />}
+ icon={<TableIcon className="h-4 w-4" />}
/>
{field.value === column && <Check className="h-4 w-4" />}
</button>
diff --git a/apps/web/ui/modals/import-csv-modal/index.tsx b/apps/web/ui/modals/import-csv-modal/index.tsx
index ef60deea6f..88de83806d 100644
--- a/apps/web/ui/modals/import-csv-modal/index.tsx
+++ b/apps/web/ui/modals/import-csv-modal/index.tsx
@@ -6,7 +6,7 @@ import {
Modal,
useRouterStuff,
} from "@dub/ui";
-import { Table } from "@dub/ui/src/icons";
+import { TableIcon } from "@dub/ui/src/icons";
import { ArrowRight } from "lucide-react";
import { useParams, useRouter, useSearchParams } from "next/navigation";
import {
@@ -116,7 +116,7 @@ function ImportCsvModal({
<div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-8 sm:px-16">
<div className="flex items-center space-x-3 py-4">
<div className="flex size-10 items-center justify-center rounded-xl border border-gray-200 bg-gray-50">
- <Table className="size-5" />
+ <TableIcon className="size-5" />
</div>
<ArrowRight className="size-5 text-gray-600" />
<Logo className="size-10" />
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index a8408ce7b3..7cebc3a4c0 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -54,7 +54,7 @@ export * from "./robot";
export * from "./shield-check";
export * from "./sliders";
export * from "./stars2";
-export * from "./table";
+export * from "./table-icon";
export * from "./table-rows2";
export * from "./tablet";
export * from "./tag";
diff --git a/packages/ui/src/icons/nucleo/table.tsx b/packages/ui/src/icons/nucleo/table-icon.tsx
similarity index 95%
rename from packages/ui/src/icons/nucleo/table.tsx
rename to packages/ui/src/icons/nucleo/table-icon.tsx
index d5b51fa55a..ffcd081e75 100644
--- a/packages/ui/src/icons/nucleo/table.tsx
+++ b/packages/ui/src/icons/nucleo/table-icon.tsx
@@ -1,6 +1,6 @@
import { SVGProps } from "react";
-export function Table(props: SVGProps<SVGSVGElement>) {
+export function TableIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
height="18"