mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(sellout/report): Fixed sellout discord reports
This commit is contained in:
1 parent
ea5b034fbe
commit
c6bdf4b331
4 files changed
+6
-12
No files matched your search
@@ -17,7 +17,7 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export const ListingActions = (listing: MarketplaceListing) => {
|
||||
export const ListingActions = ({ listing }: { listing: MarketplaceListing }) => {
|
||||
const classes = useStyles();
|
||||
const { number: myNumber } = useSimcard();
|
||||
const { t } = useTranslation();
|
||||
@@ -30,9 +30,7 @@ export const ListingActions = (listing: MarketplaceListing) => {
|
||||
};
|
||||
|
||||
const handleReportListing = () => {
|
||||
Nui.send('phone:reportListing', {
|
||||
listing,
|
||||
});
|
||||
Nui.send('phone:reportListing', listing);
|
||||
};
|
||||
|
||||
const handleCall = () => {
|
||||
|
||||
@@ -62,7 +62,7 @@ export const SelloutItem = (listing: MarketplaceListing) => {
|
||||
<Typography variant="h6" style={{ padding: 10 }}>
|
||||
{listing.description}
|
||||
</Typography>
|
||||
<ListingActions {...listing} />
|
||||
<ListingActions listing={listing} />
|
||||
</Paper>
|
||||
</div>
|
||||
</ListItem>
|
||||
|
||||
Reference in new issue
Block a user