post now
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user