Commit 68457509 by Arjun Jhukal

updated the minor changes

parent dfe96f74
...@@ -6,18 +6,6 @@ const nextConfig: NextConfig = { ...@@ -6,18 +6,6 @@ const nextConfig: NextConfig = {
remotePatterns: [ remotePatterns: [
{ {
protocol: 'https', protocol: 'https',
hostname: 'app.bdwebai.com',
port: '',
pathname: '/storage/**',
},
{
protocol: 'https',
hostname: 'sweepstake.webjuwa.com',
port: '',
pathname: '/storage/**',
},
{
protocol: 'https',
hostname: 'app.getfirekirin.com', hostname: 'app.getfirekirin.com',
port: '', port: '',
pathname: '/storage/**', pathname: '/storage/**',
......
import AuthHydrator from "@/components/Hydrators/AuthHydrator";
import FingerprintLogger from "@/components/FingerprintLogger"; import FingerprintLogger from "@/components/FingerprintLogger";
import AuthHydrator from "@/components/Hydrators/AuthHydrator";
import { pageSEO } from "@/serverApi/game"; import { pageSEO } from "@/serverApi/game";
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
...@@ -77,6 +77,22 @@ export default function RootLayout({ ...@@ -77,6 +77,22 @@ export default function RootLayout({
}} }}
/> />
)} )}
{/* <Script id="makura-chatbot-config" strategy="afterInteractive">
{`
window.MakuraBotConfig = {
chatbotId: "diva-XQpszNrG",
apiUrl: "https://chatbot.makuracreations.xyz/api",
primaryColor: "#1CA201",
secondaryColor: "#FFF81F",
position: "right",
theme: "light",
botName: "Diva",
welcomeMessage: "Hi! How can I help you today?"
};
`}
</Script>
<Script src="https://chatbot.makuracreations.xyz/widget/makura-widget.js" async></Script> */}
</head> </head>
{/* className="dark" */} {/* className="dark" */}
<body className={`${inter.className} scroll-smooth`} cz-shortcut-listen="true"> <body className={`${inter.className} scroll-smooth`} cz-shortcut-listen="true">
......
"use client"; "use client";
import ComingSoon from "@/components/pages/ComingSoon"; import { useAppSelector } from "@/hooks/hook";
import { useGetSiteAvailabilityQuery } from "@/services/settingApi"; import { useGetSiteAvailabilityQuery } from "@/services/settingApi";
import React from "react"; import React from "react";
import ComingSoon from "../pages/ComingSoon";
export default function ComingSoonGate({ children }: { children: React.ReactNode }) { export default function ComingSoonGate({ children }: { children: React.ReactNode }) {
const user = useAppSelector((state) => state.auth.user);
const { data, isLoading } = useGetSiteAvailabilityQuery(); const { data, isLoading } = useGetSiteAvailabilityQuery();
if (isLoading) return null; if (isLoading) return null;
if (data?.data?.coming_soon === false) { // const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN";
const isUser = user?.role && user?.role.toUpperCase() === "USER";
if (isUser && data?.data?.coming_soon === false) {
return <ComingSoon />; return <ComingSoon />;
} }
......
...@@ -42,7 +42,7 @@ export default function SiteAvailability() { ...@@ -42,7 +42,7 @@ export default function SiteAvailability() {
color="primary" color="primary"
/> />
} }
label={<Typography className="text-primary-dark">Coming Soon Mode</Typography>} label={<Typography className="text-primary-dark">Toggle Site Availability</Typography>}
/> />
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment