feat: no limit display
This commit is contained in:
+5
-4
@@ -13,7 +13,7 @@ export const LicensePriceList = [
|
||||
{
|
||||
title: "VoceChat Supreme",
|
||||
limit: 99999,
|
||||
pid: "price_1LkKqdGGoUDRyc3jnpZvXhzx",
|
||||
pid: "price_1Lkgc7GGoUDRyc3j49Lqtncs",
|
||||
desc: "User Limit: No Limit"
|
||||
}
|
||||
// {
|
||||
@@ -24,9 +24,10 @@ export const LicensePriceList = [
|
||||
// desc: "User Limit: 500"
|
||||
// }
|
||||
];
|
||||
export const PAYMENT_URL_PREFIX = process.env.REACT_APP_RELEASE
|
||||
? `https://vera.nicegoodthings.com`
|
||||
: `http://localhost:4000`;
|
||||
export const PAYMENT_URL_PREFIX =
|
||||
process.env.NODE_ENV === "production"
|
||||
? `https://vera.nicegoodthings.com`
|
||||
: `http://localhost:4000`;
|
||||
export const CACHE_VERSION = `0.3.1`;
|
||||
export const GuestRoutes = ["/", "/chat", "/chat/channel/:channel_id"];
|
||||
export const ContentTypes = {
|
||||
|
||||
@@ -8,7 +8,7 @@ import { useAppSelector } from "../../app/store";
|
||||
|
||||
const useLicense = () => {
|
||||
const userCount = useAppSelector((store) => store.users.ids.length);
|
||||
const { data: license } = useGetLicenseQuery();
|
||||
const { data: license } = useGetLicenseQuery(undefined, { refetchOnMountOrArgChange: true });
|
||||
const [check, { isLoading: isChecking, isSuccess: checked }] = useCheckLicenseMutation();
|
||||
const [upsert, { isSuccess: upserted, isLoading: upserting }] = useUpsertLicenseMutation();
|
||||
const checkLicense = (l: string) => {
|
||||
|
||||
@@ -84,7 +84,9 @@ export default function License() {
|
||||
</div>
|
||||
<div className="item">
|
||||
<span className="label">User Limit</span>
|
||||
<span className="info"> {licenseInfo?.user_limit}</span>
|
||||
<span className="info">
|
||||
{licenseInfo?.user_limit == 99999 ? "No Limit" : licenseInfo?.user_limit}
|
||||
</span>
|
||||
</div>
|
||||
<div className="item">
|
||||
<span className="label">Expired At</span>
|
||||
|
||||
Reference in New Issue
Block a user