fix: handle condition of free validation warning message

This commit is contained in:
RaktimaNXG
2024-03-29 17:51:59 +05:30
parent 881ac12b03
commit de26c2d719
7 changed files with 52 additions and 41 deletions
+2 -1
View File
@@ -1,12 +1,13 @@
import React from "react";
import { Tooltip as ReactTooltip } from "react-tooltip";
import { openInNewTab } from "../constant/Utils";
import { isEnableSubscription } from "../constant/const";
const Tooltip = ({ id, message, url, iconColor, isSubscribe }) =>
url ? (
<button
onClick={() => openInNewTab(url)}
className={
isSubscribe
isSubscribe || !isEnableSubscription
? "text-center"
: "text-center opacity-20 pointer-events-none"
}