diff --git a/frontend/app/components/Assist/Assist.tsx b/frontend/app/components/Assist/Assist.tsx
index 6c9f82c41..1473a99a8 100644
--- a/frontend/app/components/Assist/Assist.tsx
+++ b/frontend/app/components/Assist/Assist.tsx
@@ -1,12 +1,11 @@
import React from 'react';
-import ChatWindow from './ChatWindow/ChatWindow';
+import ChatWindow from './ChatWindow';
export default function Assist() {
-
return (
-
+
)
}
diff --git a/frontend/app/components/Assist/ChatWindow/ChatWindow.tsx b/frontend/app/components/Assist/ChatWindow/ChatWindow.tsx
index 6ef4a9ec8..daf0c610a 100644
--- a/frontend/app/components/Assist/ChatWindow/ChatWindow.tsx
+++ b/frontend/app/components/Assist/ChatWindow/ChatWindow.tsx
@@ -1,14 +1,13 @@
-import React, { useState, useEffect } from 'react';
-//import { IconButton } from 'UI';
+import React, { useState, useEffect, FC } from 'react';
import VideoContainer from '../components/VideoContainer';
import stl from './chatWindow.css';
import { callPeer } from 'App/player';
-// export interface Props {
-// call: (oStream: MediaStream, cb: (iStream: MediaStream)=>void)=>void
-// }
+export interface Props {
+ // call: (oStream: MediaStream, cb: (iStream: MediaStream)=>void)=>void
+}
-function ChatWindow() {
+const ChatWindow: FC = function ChatWindow() {
const [ inputStream, setInputStream ] = useState(null);
const [ outputStream, setOutputStream ] = useState(null);
@@ -26,17 +25,16 @@ function ChatWindow() {
.catch(console.log) // TODO: handle error in ui
}, [])
- return (
-
)
}
diff --git a/frontend/app/components/Assist/assist.stories.js b/frontend/app/components/Assist/assist.stories.js
new file mode 100644
index 000000000..2bff5204d
--- /dev/null
+++ b/frontend/app/components/Assist/assist.stories.js
@@ -0,0 +1,8 @@
+import { storiesOf } from '@storybook/react';
+import ChatWindow from './ChatWindow';
+
+storiesOf('Assist', module)
+ .add('ChatWindow', () => (
+
+ ))
+
diff --git a/frontend/app/components/Assist/components/VideoContainer/VideoContainer.css b/frontend/app/components/Assist/components/VideoContainer/VideoContainer.css
new file mode 100644
index 000000000..9a21f02c0
--- /dev/null
+++ b/frontend/app/components/Assist/components/VideoContainer/VideoContainer.css
@@ -0,0 +1,25 @@
+.controls {
+ margin-bottom: 8px;
+ margin-right: 15px;
+}
+
+.btnWrapper {
+ width: 24px;
+ height: 24px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: white;
+ border-radius: 50%;
+ margin-left: 8px;
+ /* &:hover {
+ background-color: $teal;
+ } */
+
+ &.disabled {
+ background-color: red;
+ & svg {
+ fill: white;
+ }
+ }
+}
\ No newline at end of file
diff --git a/frontend/app/components/Assist/components/VideoContainer/VideoContainer.tsx b/frontend/app/components/Assist/components/VideoContainer/VideoContainer.tsx
index 70301b5a0..f5cf85d05 100644
--- a/frontend/app/components/Assist/components/VideoContainer/VideoContainer.tsx
+++ b/frontend/app/components/Assist/components/VideoContainer/VideoContainer.tsx
@@ -1,5 +1,7 @@
import React, { useState, useEffect, useRef } from 'react'
-import { Button, Icon } from 'UI'
+import { Button, Icon, IconButton } from 'UI'
+import cn from 'classnames'
+import stl from './VideoContainer.css'
interface Props {
stream: MediaStream | null
@@ -32,17 +34,21 @@ function VideoContainer({ stream, muted = false }: Props) {
}
return (
-
-
+
+
-
-
+
+
+
+
-
+
+
+