Skip to content

Commit

Permalink
chore: added modal after publishing draft
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed Sep 23, 2024
1 parent d966620 commit e6a9988
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ export default function PublishDraftCommitModal({
const { data, publishDraft, isPublishing } = useCommits({
onSuccessPublish: () => {
router.push(ROUTES.projects.detail({ id: project.id }).commits.latest)

toast({
title: 'Success',
description: 'Project published successfully.',
})

onClose(null)
},
})
Expand Down

0 comments on commit e6a9988

Please sign in to comment.