fix(reorderable-list): open label type from string to ReactNode

This commit is contained in:
Jonas Dellinger
2023-05-29 01:14:59 +02:00
parent 26f2c92dce
commit fb5f043ba9

View File

@@ -1,4 +1,4 @@
import { Fragment, JSXElementConstructor, ReactElement, useEffect, useState } from 'react';
import { Fragment, JSXElementConstructor, ReactElement, ReactNode, useEffect, useState } from 'react';
import { Field, FieldProps, Focusable, GamepadButton } from '../deck-components';
@@ -9,7 +9,7 @@ import { Field, FieldProps, Focusable, GamepadButton } from '../deck-components'
* @param position The position of this entry in the list.
*/
export type ReorderableEntry<T> = {
label: string;
label: ReactNode;
data?: T;
position: number;
};