diff --git a/phone/src/apps/sellout/components/form/ListingForm.tsx b/phone/src/apps/sellout/components/form/ListingForm.tsx index 669a91f..198a2ce 100644 --- a/phone/src/apps/sellout/components/form/ListingForm.tsx +++ b/phone/src/apps/sellout/components/form/ListingForm.tsx @@ -1,5 +1,8 @@ -import React from "react"; +import React, { useState } from "react"; import { makeStyles, Button, TextField } from "@material-ui/core"; +import Nui from "../../../../os/nui-events/utils/Nui"; + +import "../Sellout.css" const useStyles = makeStyles((theme) => ({ root: { @@ -27,11 +30,25 @@ const useStyles = makeStyles((theme) => ({ export const ListingForm = () => { const classes = useStyles(); + + const [ title, setTitle ] = useState(''); + const [ url, setUrl ] = useState(''); + const [ desc, setDesc ] = useState(''); + + const addListing = () => { + Nui.send('phone:addListing', { + title, + url, + desc + }) + } + return (