mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 16:44:59 -05:00
fix: new domain dialog
fix: new domain dialog
This commit is contained in:
commit
2b97ed4529
@ -31,38 +31,38 @@
|
|||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
DialogDescription,
|
DialogDescription,
|
||||||
DialogFooter,
|
DialogFooter,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from "@/components/ui/dialog";
|
} from "@/components/ui/dialog";
|
||||||
import { useSearchParams } from "next/navigation";
|
import { useSearchParams } from "next/navigation";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
export default function NewDomainDialog() {
|
export default function NewDomainDialog() {
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const toShow = searchParams?.get("newDomain") === "true";
|
const toShow = searchParams?.get("newDomain") === "true";
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (toShow) setOpen(true);
|
if (toShow) setOpen(true);
|
||||||
}, [toShow]);
|
}, [toShow]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={setOpen}>
|
<Dialog open={open} onOpenChange={setOpen}>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogTitle>We've moved domains!</DialogTitle>
|
<DialogTitle>We've moved domains!</DialogTitle>
|
||||||
<DialogDescription className="text-white">
|
<DialogDescription className="text-black dark:text-white">
|
||||||
We have changed our domain from <code>list.mlnehut.com</code> to{" "}
|
We have changed our domain from <code>list.mlnehut.com</code> to{" "}
|
||||||
<code>mhsf.app</code>. Thank you for your continued support. We'd also
|
<code>mhsf.app</code>. Thank you for your continued support. We'd also
|
||||||
like to thank Tarna for providing us with a domain we can use for the
|
like to thank Tarna for providing us with a domain we can use for the
|
||||||
short-term.
|
short-term.
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
<Button onClick={() => setOpen(false)}>Close</Button>
|
<Button onClick={() => setOpen(false)}>Close</Button>
|
||||||
</DialogFooter>
|
</DialogFooter>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user