File tree Expand file tree Collapse file tree 1 file changed +15
-19
lines changed
apps/frontend/src/components/launches Expand file tree Collapse file tree 1 file changed +15
-19
lines changed Original file line number Diff line number Diff line change 11import { forwardRef } from 'react' ;
22import type { MDEditorProps } from '@uiw/react-md-editor/src/Types' ;
33import { RefMDEditor } from '@uiw/react-md-editor/src/Editor' ;
4- import MDEditor from '@uiw/react-md-editor' ;
54import { useCopilotAction , useCopilotReadable } from '@copilotkit/react-core' ;
65import { CopilotTextarea } from '@copilotkit/react-textarea' ;
76import clsx from 'clsx' ;
@@ -41,24 +40,21 @@ export const Editor = forwardRef<
4140
4241 return (
4342 < div className = "relative bg-customColor2" >
44- { user ?. tier ?. ai ? (
45- < CopilotTextarea
46- disableBranding = { true }
47- className = { clsx (
48- '!min-h-40 !max-h-80 p-2 overflow-hidden bg-customColor2 outline-none'
49- ) }
50- value = { props . value }
51- onChange = { ( e ) => props ?. onChange ?.( e . target . value ) }
52- onPaste = { props . onPaste }
53- placeholder = "Write your reply..."
54- autosuggestionsConfig = { {
55- textareaPurpose : `Assist me in writing social media posts.` ,
56- chatApiConfigs : { } ,
57- } }
58- />
59- ) : (
60- < MDEditor { ...props } ref = { ref } />
61- ) }
43+ < CopilotTextarea
44+ disableBranding = { true }
45+ className = { clsx (
46+ '!min-h-40 !max-h-80 p-2 overflow-x-hidden scrollbar scrollbar-thumb-[#612AD5] bg-customColor2 outline-none'
47+ ) }
48+ value = { props . value }
49+ onChange = { ( e ) => props ?. onChange ?.( e . target . value ) }
50+ onPaste = { props . onPaste }
51+ placeholder = "Write your reply..."
52+ autosuggestionsConfig = { {
53+ textareaPurpose : `Assist me in writing social media posts.` ,
54+ chatApiConfigs : { } ,
55+ disabled : ! user ?. tier ?. ai ,
56+ } }
57+ />
6258 </ div >
6359 ) ;
6460 }
You can’t perform that action at this time.
0 commit comments