Add Sonner component

This commit is contained in:
grimsi
2024-06-07 23:55:15 +02:00
parent 0943ffa265
commit b78e94b45e
7 changed files with 69 additions and 6 deletions
+2
View File
@@ -8,6 +8,7 @@ import {Card} from "@nextui-org/react";
import {SetupEndpoint} from "Frontend/generated/endpoints";
import {ThemeSelector} from "Frontend/components/theming/ThemeSelector";
import {useNavigate} from "react-router-dom";
import {toast} from "sonner";
function WelcomeStep() {
return (
@@ -99,6 +100,7 @@ function SetupView() {
password: values.password,
email: values.email
});
toast("Setup finished", {description: "Have fun with Gameyfin!"});
navigate('/login');
} catch (e) {
alert("An error occurred while completing the setup. Please try again.")