This commit is contained in:
2025-02-21 14:10:05 +01:00
parent 4e62e43f4e
commit bcf74c537d
+14
View File
@@ -122,6 +122,20 @@ export default function PostDialog({
> >
Cancel Cancel
</Button> </Button>
<Button
variant="destructive"
onClick={() => {
axios.post('http://localhost:3000/api/posts', {
sessionId,
platforms: ['andjksds'],
content,
} satisfies PostRequest);
setNewPostDialogOpen(false);
}}
>
Post now
</Button>
<Button <Button
onClick={() => { onClick={() => {
const end = new Date(date); const end = new Date(date);