Added popup message when clicking on Request Access

This commit is contained in:
2026-01-03 22:59:40 +05:30
parent 5ed739f981
commit 5d4eb5a505
3 changed files with 97 additions and 12 deletions

View File

@@ -4,6 +4,8 @@ import { getUserGuilds } from "@/lib/discord";
import ServerSwitcher from "@/components/ServerSwitcher";
import DashboardSidebar from "@/components/DashboardSidebar";
import UserProfile from "@/components/UserProfile";
import RequestAccessButton from "@/components/RequestAccessButton";
export default async function DashboardLayout({
@@ -74,13 +76,9 @@ export default async function DashboardLayout({
Add to Server
</a>
) : (
<button
disabled
className="inline-flex items-center gap-2 px-6 sm:px-8 py-2.5 sm:py-3 bg-white/5 text-gray-400 rounded-full font-bold text-base sm:text-lg cursor-not-allowed border border-white/10"
>
Request Access
</button>
<RequestAccessButton guildId={currentGuild.id} />
)}
</div>
</div>
</div>