Skip to content

Commit 97a5b90

Browse files
authored
fix(eslint): eslint error (#916)
1 parent 7d71753 commit 97a5b90

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

desktop/renderer-app/src/components/Modal/InviteModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const InviteModal = observer<InviteModalProps>(function InviteModal({
4444
void message.success(t("copy-success"));
4545
onCopied();
4646
},
47-
[onCopied],
47+
[onCopied, t],
4848
);
4949

5050
return (

desktop/renderer-app/src/react-app-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="node" />
2-
/// <reference types="react" />
32
/// <reference types="react-dom" />
43

54
declare namespace NodeJS {

packages/flat-components/src/utils/breakpoints.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function getType(width: number): BreakpointType {
1212
export function onBreakpoint(callback: (type: BreakpointType) => void): () => void {
1313
let lastType: BreakpointType = getType(window.innerWidth);
1414
callback(lastType);
15-
let timer: number = NaN;
15+
let timer = NaN;
1616
function onresize(): void {
1717
window.clearTimeout(timer);
1818
timer = window.setTimeout(() => {

0 commit comments

Comments
 (0)