From 3aeecda9d91124f85bfd3f80ac683c9652e3f76d Mon Sep 17 00:00:00 2001 From: Tim Sweeney Date: Mon, 2 Dec 2024 13:05:41 -0800 Subject: [PATCH] chore(weave): Hide scorer UI from all users (#3121) * init * init --- .../Home/Browse3/pages/CallPage/CallPage.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/CallPage.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/CallPage.tsx index 94bc220d1fec..3877ccf0033f 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/CallPage.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/CallPage.tsx @@ -1,5 +1,4 @@ import Box from '@mui/material/Box'; -import {useViewerInfo} from '@wandb/weave/common/hooks/useViewerInfo'; import {Loading} from '@wandb/weave/components/Loading'; import {urlPrefixed} from '@wandb/weave/config'; import {useViewTraceEvent} from '@wandb/weave/integrations/analytics/useViewEvents'; @@ -71,8 +70,10 @@ export const CallPage: FC<{ }; export const useShowRunnableUI = () => { - const viewerInfo = useViewerInfo(); - return viewerInfo.loading ? false : viewerInfo.userInfo?.admin; + return false; + // Uncomment to re-enable. + // const viewerInfo = useViewerInfo(); + // return viewerInfo.loading ? false : viewerInfo.userInfo?.admin; }; const useCallTabs = (call: CallSchema) => {