Added popup message when clicking on Request Access
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -4,6 +4,8 @@ import Link from "next/link"
|
||||
import { getUserGuilds } from "@/lib/discord"
|
||||
import Toast from "@/components/Toast"
|
||||
import UserProfile from "@/components/UserProfile"
|
||||
import RequestAccessButton from "@/components/RequestAccessButton"
|
||||
|
||||
|
||||
|
||||
export default async function Dashboard() {
|
||||
@@ -74,13 +76,9 @@ export default async function Dashboard() {
|
||||
Add to Server
|
||||
</a>
|
||||
) : (
|
||||
<button
|
||||
disabled
|
||||
className="px-4 py-2 bg-white/5 text-gray-500 rounded-lg border border-white/5 cursor-not-allowed w-full flex items-center justify-center gap-2"
|
||||
>
|
||||
Request Access
|
||||
</button>
|
||||
<RequestAccessButton guildId={guild.id} />
|
||||
)}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user