Skip to content

Commit

Permalink
fix forward ref warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Parker-Stafford committed Oct 10, 2024
1 parent e8e90db commit 07f2302
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions app/src/components/dnd/DragHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ import { css } from "@emotion/react";
// eslint-disable-next-line @typescript-eslint/ban-types
type Listeners = Record<string, Function>;

function DragHandle({
listeners,
attributes,
}: {
listeners?: Listeners;
attributes: DraggableAttributes;
}) {
function DragHandle(
{
listeners,
attributes,
}: {
listeners?: Listeners;
attributes: DraggableAttributes;
},
ref: React.Ref<HTMLButtonElement>
) {
return (
<button
ref={ref}
{...listeners}
{...attributes}
aria-roledescription="draggable"
Expand Down

0 comments on commit 07f2302

Please sign in to comment.