Commit 4998042 1 parent 915be36 commit 4998042 Copy full SHA for 4998042
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ export function YBPasteCard(props:PasteCardProps) {
11
11
const [ textFieldValue , setTextFieldValue ] = useState ( "" )
12
12
const { feed} = useParams ( )
13
13
14
- //
14
+ //
15
15
// Pasting Data
16
16
//
17
17
18
18
const handleOnPaste = ( event : React . ClipboardEvent ) => {
19
+ console . log ( "test" )
19
20
const items = event . clipboardData . items
20
21
var data , type
21
22
setTextFieldValue ( "" )
@@ -76,14 +77,14 @@ export function YBPasteCard(props:PasteCardProps) {
76
77
} , [ ] ) ;
77
78
78
79
return (
79
- < div className = "pasteDiv" tabIndex = { 0 } onPaste = { handleOnPaste } >
80
+ < div id = "pasteCard" className = "pasteDiv" tabIndex = { 0 } onPaste = { handleOnPaste } >
80
81
{ ( props . empty === true ) ?< p > Your feed is empty</ p > :"" }
81
82
{ isMobile ?
82
83
< Form action = "/" onFinish = { handleFinish } >
83
84
< Input placeholder = 'Paste Here' value = { textFieldValue } onChange = { ( e ) => setTextFieldValue ( e . currentTarget . value ) } />
84
85
</ Form >
85
86
:
86
- < p > Paste content here</ p >
87
+ < p > Click and paste content here</ p >
87
88
}
88
89
</ div >
89
90
)
You can’t perform that action at this time.
0 commit comments