Folder-based drag-n-drop complete!

This commit is contained in:
Gregory Schier
2023-11-03 16:29:21 -07:00
parent bb9025ab07
commit 00718df49e
3 changed files with 206 additions and 117 deletions

View File

@@ -3,14 +3,16 @@ import React, { memo } from 'react';
interface Props {
className?: string;
depth: number;
}
export const DropMarker = memo(
function DropMarker({ className }: Props) {
function DropMarker({ className, depth }: Props) {
return (
<div
className={classNames(
className,
depth > 0 ? 'ml-5' : 'ml-0',
'relative w-full h-0 overflow-visible pointer-events-none',
)}
>