Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/mux-uploader-react/src/mux-uploader-pause.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ export type MuxUploaderPauseProps = {
children?: React.ReactNode;
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, 'ref'>;

const MuxUploaderRetryInternal = React.forwardRef<MuxUploaderPauseRefAttributes, MuxUploaderPauseProps>(
const MuxUploaderPauseInternal = React.forwardRef<MuxUploaderPauseRefAttributes, MuxUploaderPauseProps>(
({ children, ...props }, ref) => {
return React.createElement('mux-uploader-retry', toNativeProps({ ...props, ref }), children);
return React.createElement('mux-uploader-pause', toNativeProps({ ...props, ref }), children);
}
);

const MuxUploaderPause = React.forwardRef<MuxUploaderPauseRefAttributes, MuxUploaderPauseProps>((props, ref) => {
const innerUploaderPauseRef = useRef<MuxUploaderPauseElement>(null);
const uploaderPauseRef = useCombinedRefs(innerUploaderPauseRef, ref);

return <MuxUploaderRetryInternal ref={uploaderPauseRef as typeof innerUploaderPauseRef} {...props} />;
return <MuxUploaderPauseInternal ref={uploaderPauseRef as typeof innerUploaderPauseRef} {...props} />;
});

export default MuxUploaderPause;
Loading