Skip to content

Commit

Permalink
Fixes 5035: enable uploads in prod preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsherrill committed Nov 20, 2024
1 parent 605f014 commit 3e92a39
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ const AddContent = ({ isEdit = false }: Props) => {
const { repoUUID: uuid } = useParams();
const navigate = useNavigate();
const rootPath = useRootPath();
const { isProd } = useChrome();
const { isProd, isBeta } = useChrome();
const isInProd = useMemo(() => isProd(), []);
const isInBeta = useMemo(() => isBeta(), []);
const [errors, setErrors] = useState<Record<string, string>>({});

const { data, isLoading: isLoadingInitialContent, isSuccess } = useFetchContent(uuid!, isEdit);
Expand Down Expand Up @@ -492,7 +493,7 @@ const AddContent = ({ isEdit = false }: Props) => {
}
/>
</Hide>
<Hide hide={isInProd || (isEdit && contentOrigin === ContentOrigin.EXTERNAL)}>
<Hide hide={(isInProd && !isInBeta) || (isEdit && contentOrigin === ContentOrigin.EXTERNAL)}>
<ConditionalTooltip
show={isEdit && contentOrigin === ContentOrigin.UPLOAD}
setDisabled={isEdit && contentOrigin === ContentOrigin.UPLOAD}
Expand Down

0 comments on commit 3e92a39

Please sign in to comment.