Skip to content

Commit 77fa506

Browse files
authored
Change timeoutIdRef type number to ReturnType<typeof setTimout>
1 parent 83e6753 commit 77fa506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/ShareDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function ShareDialog({ target, customTitle, onFinished, permalinkCreator
103103
const showQrCode = useSettingValue(UIFeature.ShareQRCode);
104104
const showSocials = useSettingValue(UIFeature.ShareSocial);
105105

106-
const timeoutIdRef = useRef<number>(undefined);
106+
const timeoutIdRef = useRef<ReturnType<typeof setTimeout>>(undefined);
107107
const [isCopied, setIsCopied] = useState(false);
108108

109109
const [linkToSpecificEvent, setLinkToSpecificEvent] = useState(target instanceof MatrixEvent);

0 commit comments

Comments
 (0)