Skip to content

Commit 1851d10

Browse files
authored
fix(mux-uploader-react): Use correct custom element name and rename i… (#1073)
Regarding this issue I opened: #1072
1 parent bbe1e38 commit 1851d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mux-uploader-react/src/mux-uploader-pause.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ export type MuxUploaderPauseProps = {
1212
children?: React.ReactNode;
1313
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, 'ref'>;
1414

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

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

25-
return <MuxUploaderRetryInternal ref={uploaderPauseRef as typeof innerUploaderPauseRef} {...props} />;
25+
return <MuxUploaderPauseInternal ref={uploaderPauseRef as typeof innerUploaderPauseRef} {...props} />;
2626
});
2727

2828
export default MuxUploaderPause;

0 commit comments

Comments
 (0)