refactor: update .gitignore and clean up unused imports and comments

This commit is contained in:
Noooste
2025-11-24 18:27:30 +01:00
parent 6b050f1090
commit a7388b8962
4 changed files with 8 additions and 8 deletions
@@ -44,7 +44,7 @@ export function BucketUsageChart({ data }: BucketUsageChartProps) {
cx="50%"
cy="50%"
labelLine={false}
label={({ name, displaySize }) => `${name}: ${displaySize}`}
label={({ name }) => `${name}`}
outerRadius={80}
fill="#8884d8"
dataKey="value"
+2 -2
View File
@@ -4,7 +4,7 @@ import { cn } from '@/lib/utils';
interface DropdownMenuContextValue {
open: boolean;
setOpen: (open: boolean) => void;
triggerRef: React.RefObject<HTMLButtonElement>;
triggerRef: React.RefObject<HTMLButtonElement | null>;
}
const DropdownMenuContext = React.createContext<DropdownMenuContextValue | undefined>(undefined);
@@ -58,7 +58,7 @@ interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement>
}
const DropdownMenuContent = React.forwardRef<HTMLDivElement, DropdownMenuContentProps>(
({ className, children, align = 'start', ...props }, _ref) => {
({ className, children, align = 'start', ...props }) => {
const { open, setOpen, triggerRef } = useDropdownMenu();
const contentRef = React.useRef<HTMLDivElement>(null);