generated from fahricansecer/boilerplate-fe
This commit is contained in:
@@ -58,7 +58,7 @@ export default function DocumentToVideoPage() {
|
||||
|
||||
const handleGenerate = async () => {
|
||||
if (!file) {
|
||||
toast.error("Lütfen bir belge seçin.");
|
||||
toast("error", "Lütfen bir belge seçin.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -71,10 +71,10 @@ export default function DocumentToVideoPage() {
|
||||
targetDuration: duration,
|
||||
});
|
||||
|
||||
toast.success("Belge → Video projesi oluşturuldu!");
|
||||
toast("success", "Belge → Video projesi oluşturuldu!");
|
||||
router.push(`/dashboard/projects/${result.id}`);
|
||||
} catch (error) {
|
||||
toast.error("Proje oluşturulurken hata oluştu.");
|
||||
toast("error", "Proje oluşturulurken hata oluştu.");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user