launch show & tell for OSS (#4333)
This commit is contained in:
@@ -2,7 +2,6 @@ import { SquareIcon, PlusIcon } from "@radix-ui/react-icons";
|
|||||||
import { ReactNode } from "react";
|
import { ReactNode } from "react";
|
||||||
|
|
||||||
import { RadialMenu } from "@/components/RadialMenu";
|
import { RadialMenu } from "@/components/RadialMenu";
|
||||||
import { useIsSkyvernUser } from "@/hooks/useIsSkyvernUser";
|
|
||||||
import { useDebugStore } from "@/store/useDebugStore";
|
import { useDebugStore } from "@/store/useDebugStore";
|
||||||
import { useRecordingStore } from "@/store/useRecordingStore";
|
import { useRecordingStore } from "@/store/useRecordingStore";
|
||||||
import { useSettingsStore } from "@/store/SettingsStore";
|
import { useSettingsStore } from "@/store/SettingsStore";
|
||||||
@@ -33,13 +32,8 @@ function WorkflowAddMenu({
|
|||||||
const debugStore = useDebugStore();
|
const debugStore = useDebugStore();
|
||||||
const recordingStore = useRecordingStore();
|
const recordingStore = useRecordingStore();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
const isSkyvernUser = useIsSkyvernUser();
|
|
||||||
|
|
||||||
if (
|
if (!debugStore.isDebugMode || !settingsStore.isUsingABrowser) {
|
||||||
!isSkyvernUser ||
|
|
||||||
!debugStore.isDebugMode ||
|
|
||||||
!settingsStore.isUsingABrowser
|
|
||||||
) {
|
|
||||||
return <>{children}</>;
|
return <>{children}</>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user