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.

Update folder-icon.tsx

Kiran Kc17b353f7965
diff --git a/apps/web/ui/folders/folder-icon.tsx b/apps/web/ui/folders/folder-icon.tsx
index 328a6093d0..cdbba44a9d 100644
--- a/apps/web/ui/folders/folder-icon.tsx
+++ b/apps/web/ui/folders/folder-icon.tsx
@@ -8,6 +8,9 @@ import {
} from "@dub/ui/icons";
import { cn } from "@dub/utils";
+// TODO:
+// Cleanup the icons and make them more consistent
+
const FolderOpen = ({ className }: { className: string }) => {
return <Folder className={cn("text-blue-800", className)} />;
};
@@ -110,9 +113,11 @@ const FolderIcon = ({
export const FolderSquareIcon = ({
folder,
className,
+ iconSize = "size-4",
}: {
folder: Pick<FolderProps, "id" | "accessLevel">;
className?: string;
+ iconSize?: string;
}) => {
const type =
accessLevelMap[folder.id] ||
@@ -126,8 +131,8 @@ export const FolderSquareIcon = ({
return (
<div className={cn("rounded-md border", borderColor, bgColor)}>
- <div className="p-1.5">
- <IconComponent className={cn("size-4", className)} />
+ <div className={className}>
+ <IconComponent className={iconSize} />
</div>
</div>
);