1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

Upgrade react-dnd and DnD Components to TypeScript

This commit is contained in:
Mark McDowall
2024-12-29 18:21:01 -08:00
parent 572bdc979c
commit 1bc1b080d1
85 changed files with 3525 additions and 4767 deletions
+14 -9
View File
@@ -1,16 +1,21 @@
import React from 'react';
import React, { ForwardedRef, forwardRef, ReactNode } from 'react';
import styles from './ModalFooter.css';
interface ModalFooterProps extends React.HTMLAttributes<HTMLDivElement> {
children?: React.ReactNode;
children: ReactNode;
}
function ModalFooter({ children, ...otherProps }: ModalFooterProps) {
return (
<div className={styles.modalFooter} {...otherProps}>
{children}
</div>
);
}
const ModalFooter = forwardRef(
(
{ children, ...otherProps }: ModalFooterProps,
ref: ForwardedRef<HTMLDivElement>
) => {
return (
<div ref={ref} className={styles.modalFooter} {...otherProps}>
{children}
</div>
);
}
);
export default ModalFooter;