mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove props from dnd mock to make snapshot diffs smaller
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
8de3e75191
commit
e4adc3f1e3
@ -7,7 +7,9 @@ import React from "react";
|
|||||||
import type {
|
import type {
|
||||||
DragDropContextProps,
|
DragDropContextProps,
|
||||||
DraggableProps,
|
DraggableProps,
|
||||||
|
DraggableProvidedDraggableProps,
|
||||||
DroppableProps,
|
DroppableProps,
|
||||||
|
DroppableProvidedProps,
|
||||||
} from "react-beautiful-dnd";
|
} from "react-beautiful-dnd";
|
||||||
|
|
||||||
export const DragDropContext = ({ children }: DragDropContextProps) => <>{ children }</>;
|
export const DragDropContext = ({ children }: DragDropContextProps) => <>{ children }</>;
|
||||||
@ -16,10 +18,7 @@ export const Draggable = ({ children }: DraggableProps) => (
|
|||||||
{
|
{
|
||||||
children(
|
children(
|
||||||
{
|
{
|
||||||
draggableProps: {
|
draggableProps: {} as DraggableProvidedDraggableProps,
|
||||||
"data-rbd-draggable-context-id": "some-mock-rbd-draggable-context-id",
|
|
||||||
"data-rbd-draggable-id": "some-mock-rbd-draggable-id",
|
|
||||||
},
|
|
||||||
innerRef: () => {},
|
innerRef: () => {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -43,10 +42,7 @@ export const Droppable = ({ children }: DroppableProps) => (
|
|||||||
{
|
{
|
||||||
children(
|
children(
|
||||||
{
|
{
|
||||||
droppableProps: {
|
droppableProps: {} as DroppableProvidedProps,
|
||||||
"data-rbd-droppable-context-id": "some-mock-rbd-droppable-context-id",
|
|
||||||
"data-rbd-droppable-id": "some-mock-rbd-droppable-id",
|
|
||||||
},
|
|
||||||
innerRef: () => {},
|
innerRef: () => {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user