organize PremiumLock into signaled components

This commit is contained in:
wil committed 2024-06-17 11:39:42 -04:00
1 parent e76c885b0c
commit b8184b0f22
5 files changed
+6 -5

No files matched your search

-1
View File
@@ -1 +0,0 @@
export { default } from "./PremiumLock";
@@ -19,7 +19,7 @@ const sessionSubscriptions = {
hasActiveEliteSubscription: () => false, // if has elite or not
};
export default function PremiumLock({
export function PremiumLock({
requiredPlan = "plus",
plural = false,
children,
@@ -0,0 +1 @@
export * from "./PremiumLock";
+2 -1
View File
@@ -1,6 +1,7 @@
export * from "./ErrorDialog";
export * from "./Toaster";
export * from "./TopBar";
export * from "./ErrorDialog";
export * from "./PremiumLock";
// all the Upload stuff will depend on the API Manager Signal
export * from "./UploadAudioButtonDialogue";
@@ -1,4 +1,4 @@
import { Button, Label } from "~/components";
import { Button, Label, PremiumLock } from "~/components";
import {
faArrowsRotate,
faChevronLeft,
@@ -10,7 +10,7 @@ import Queue from "~/pages/PageEnigma/Queue/Queue";
import { QueueNames } from "~/pages/PageEnigma/Queue/QueueNames";
import { toEngineActions } from "~/pages/PageEnigma/Queue/toEngineActions";
import { Switch } from "@headlessui/react";
import PremiumLock from "~/components/PremiumLock";
import {
faceDetail,
styleStrength,