Commit ad63ba28 by Arjun Jhukal

updated the minor changes

parent 30d3b103
...@@ -15,7 +15,7 @@ export default function ComingSoonGate({ children }: { children: React.ReactNode ...@@ -15,7 +15,7 @@ export default function ComingSoonGate({ children }: { children: React.ReactNode
// const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN"; // const isAdmin = user?.role === "ADMIN" || user?.role === "SUPER_ADMIN";
const isUser = !user || user?.role?.toUpperCase() === "USER"; const isUser = !user || user?.role?.toUpperCase() === "USER";
if (isUser && data?.data?.coming_soon === false) { if (isUser && data?.data?.coming_soon === true) {
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">Toggle Site Availability</Typography>} label={<Typography className="text-primary-dark">Comming Soon</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