chore: run fixes (#8257)
* chore: run fixes * fix: type, just use hocuspocusservercontext * fix: codemod --------- Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
This commit is contained in:
parent
a9e9cb2983
commit
0ab94ed6d6
172 changed files with 1784 additions and 1798 deletions
|
|
@ -49,7 +49,7 @@ const ComboDropDown = forwardRef(function ComboDropDown(props: Props, ref) {
|
|||
}
|
||||
|
||||
return (
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error, @typescript-eslint/ban-ts-comment
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
<Combobox {...rest} ref={ref}>
|
||||
<Combobox.Button as={Fragment}>{button}</Combobox.Button>
|
||||
|
|
|
|||
|
|
@ -46,11 +46,9 @@ const moveItem = <T,>(
|
|||
// Insert at the calculated position (bounds check is implicit in splice)
|
||||
newData.splice(adjustedDestinationIndex, 0, movedItem);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { __uuid__: movedItemId, ...movedItemData } = movedItem;
|
||||
return {
|
||||
newData: newData.map((item) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { __uuid__: uuid, ...rest } = item;
|
||||
return rest as T;
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -95,12 +95,7 @@ export function Tooltip({
|
|||
</div>
|
||||
}
|
||||
position={position}
|
||||
renderTarget={({
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
isOpen: isTooltipOpen,
|
||||
ref: eleReference,
|
||||
...tooltipProps
|
||||
}) =>
|
||||
renderTarget={({ isOpen: isTooltipOpen, ref: eleReference, ...tooltipProps }) =>
|
||||
React.cloneElement(children, {
|
||||
ref: eleReference,
|
||||
...tooltipProps,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue