@@ -47,6 +47,11 @@ export default function CollaborationPage(props: CollaborationProps) {
4747 ) ;
4848 const [ matchedUser , setMatchedUser ] = useState < string | undefined > ( undefined ) ;
4949
50+ // Chat states
51+ const [ messageToSend , setMessageToSend ] = useState < string | undefined > (
52+ undefined
53+ ) ;
54+
5055 // Manual test case states
5156 const [ manualTestCase , setManualTestCase ] = useState < string | undefined > (
5257 undefined
@@ -82,12 +87,16 @@ export default function CollaborationPage(props: CollaborationProps) {
8287 {
8388 key : "1" ,
8489 label : "Case 1" ,
85- children : "Insert Test Case 1" , // TODO: Setup test-cases in db for each qn and pull/paste here
90+ children : (
91+ < Input . TextArea disabled placeholder = "Insert Test Case 1" rows = { 6 } />
92+ ) , // TODO: Setup test-cases in db for each qn and pull/paste here
8693 } ,
8794 {
8895 key : "2" ,
8996 label : "Case 2" ,
90- children : "Insert Test Case 2" ,
97+ children : (
98+ < Input . TextArea disabled placeholder = "Insert Test Case 2" rows = { 6 } />
99+ ) ,
91100 } ,
92101 {
93102 key : "3" ,
@@ -96,6 +105,7 @@ export default function CollaborationPage(props: CollaborationProps) {
96105 < Input . TextArea
97106 onChange = { ( e ) => setManualTestCase ( e . target . value ) }
98107 placeholder = "Input Manual Test Case"
108+ rows = { 6 }
99109 />
100110 ) ,
101111 } ,
@@ -208,6 +218,21 @@ export default function CollaborationPage(props: CollaborationProps) {
208218 < MessageOutlined className = "title-icons" />
209219 Chat
210220 </ div >
221+
222+ < div className = "chat-message-box" >
223+ < div className = "chat-header-message" >
224+ Matched with { matchedUser }
225+ </ div >
226+ { /* TODO: Map and input the history of messages sent here */ }
227+ < div > </ div >
228+ </ div >
229+ < div className = "chat-typing-box" >
230+ < Input . TextArea
231+ onChange = { ( e ) => setMessageToSend ( e . target . value ) }
232+ placeholder = "Send Message Here"
233+ rows = { 4 }
234+ />
235+ </ div >
211236 </ div >
212237 </ Row >
213238 </ Col >
0 commit comments