Skip to content

Commit 4998042

Browse files
committed
fix: Improved wording in paste box
1 parent 915be36 commit 4998042

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ui/src/YBFeed/YBPasteCard.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ export function YBPasteCard(props:PasteCardProps) {
1111
const [textFieldValue,setTextFieldValue] = useState("")
1212
const {feed} = useParams()
1313

14-
//
14+
//
1515
// Pasting Data
1616
//
1717

1818
const handleOnPaste = (event: React.ClipboardEvent) => {
19+
console.log("test")
1920
const items = event.clipboardData.items
2021
var data, type
2122
setTextFieldValue("")
@@ -76,14 +77,14 @@ export function YBPasteCard(props:PasteCardProps) {
7677
}, []);
7778

7879
return (
79-
<div className="pasteDiv" tabIndex={0} onPaste={handleOnPaste} >
80+
<div id="pasteCard" className="pasteDiv" tabIndex={0} onPaste={handleOnPaste} >
8081
{(props.empty === true)?<p>Your feed is empty</p>:""}
8182
{isMobile?
8283
<Form action="/" onFinish={handleFinish}>
8384
<Input placeholder='Paste Here' value={textFieldValue} onChange={(e) => setTextFieldValue(e.currentTarget.value)}/>
8485
</Form>
8586
:
86-
<p>Paste content here</p>
87+
<p>Click and paste content here</p>
8788
}
8889
</div>
8990
)

0 commit comments

Comments
 (0)