fix(Sellout): Name correction for sending data to client

This commit is contained in:
chip committed 2020-10-20 00:45:51 +02:00
1 parent 88f527707c
commit 0aa38a98a9
1 file changed
+3 -3
@@ -33,13 +33,13 @@ export const ListingForm = () => {
const [ title, setTitle ] = useState(''); const [ title, setTitle ] = useState('');
const [ url, setUrl ] = useState(''); const [ url, setUrl ] = useState('');
const [ desc, setDesc ] = useState(''); const [ description, setDescription ] = useState('');
const addListing = () => { const addListing = () => {
Nui.send('phone:addListing', { Nui.send('phone:addListing', {
title, title,
url, url,
desc description
}) })
} }
@@ -67,7 +67,7 @@ export const ListingForm = () => {
<TextField <TextField
className={classes.input} className={classes.input}
onChange={e => setDesc(e.target.value)} onChange={e => setDescription(e.target.value)}
placeholder="Description" placeholder="Description"
inputProps={{ className: classes.multilineFieldInput }} inputProps={{ className: classes.multilineFieldInput }}
style={{ width: "80%" }} style={{ width: "80%" }}