Skip to content

Commit

Permalink
feat (apps/pano): use dialog for post deletion (#579)
Browse files Browse the repository at this point in the history
Adds the modal required for post deletion using the dialog component

closes #569 

![image](https://github.com/kamp-us/monorepo/assets/121015513/0a259ce5-5bf7-47e4-ac5b-d4a472fbd177)

---------

Co-authored-by: Can Sirin <[email protected]>
  • Loading branch information
Murat-tunca and cansirin authored Aug 10, 2023
1 parent b701a04 commit 15a5c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/kampus/app/pano/features/post-list/MoreOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function canUserEdit(user: User, post: Post) {
}

export const MoreOptionsDropdown = ({ post, shareUrl }: Props) => {
const user = { username: "cancan" };
const user = { username: "John Doe" };
console.log(post, shareUrl);

const router = useRouter();
Expand Down Expand Up @@ -98,7 +98,7 @@ export const MoreOptionsDropdown = ({ post, shareUrl }: Props) => {
</DialogHeader>
<DialogFooter>
<Button variant="outline" type="submit">
Hayir
Hayır
</Button>
<Button variant="destructive" type="submit">
Evet
Expand Down

0 comments on commit 15a5c5c

Please sign in to comment.