Skip to content

Commit 2578fb2

Browse files
committed
typescript error
1 parent d8fa415 commit 2578fb2

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/client/components/Versions.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
import * as React from 'react';
22
import { useState } from 'react';
33

4+
declare global {
5+
interface Window {
6+
api: {
7+
versions: {
8+
electron: string;
9+
chrome: string;
10+
node: string;
11+
};
12+
};
13+
}
14+
}
15+
416
function Versions(): JSX.Element {
517
const [versions] = useState(window.api.versions);
618

src/client/components/main/WebRTC-composer/WebRTCServerEntryForm.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from 'react';
22
import Joyride from 'react-joyride';
33
import { useState, useRef, useEffect } from 'react';
44
import { MdRefresh } from 'react-icons/md';
5+
import { Placement } from 'react-joyride';
6+
57

68
// import '/Users/katharinehunt/Swell/src/assets/style/WebRtcEntry.css';
79
import '../../../../assets/style/WebRtc.css';
@@ -88,23 +90,23 @@ const WebRTCServerEntryForm: React.FC<Props> = (props: Props) => {
8890
{
8991
target: '.get-offer-button',
9092
content: 'Caller: Generate an offer by clicking “Get Offer”.',
91-
placement: 'bottom',
93+
placement: 'bottom' as Placement,
9294
},
9395
{
9496
target: '.copy-offer-button', // Target the "Copy" button in the Offer code box
9597
content:
9698
'Caller: Copy to clipboard, paste and send to recipient (email recommended).',
97-
placement: 'bottom',
99+
placement: 'bottom' as Placement,
98100
},
99101
{
100102
target: '.offer-paste-button',
101103
content: 'Recipient: Copy the offer received and paste into the top box',
102-
placement: 'bottom',
104+
placement: 'bottom' as Placement,
103105
},
104106
{
105107
target: '.get-answer-btn',
106108
content: "Recipient: Click 'Get Answer' and copy it.",
107-
placement: 'bottom',
109+
placement: 'bottom' as Placement,
108110
},
109111
{
110112
target: '.answer-paste-button',

0 commit comments

Comments
 (0)