Skip to content

Commit

Permalink
fix: use correct hook to determine cloud environment (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp authored Jun 20, 2024
1 parent dc67209 commit d3abad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/BatchExportTableButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import React from "react";
import { api } from "@/src/utils/api";
import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";
import { isEeEnabled } from "@/src/ee/utils/isEeEnabled";
import { useIsEeEnabled } from "@/src/ee/utils/useIsEeEnabled";

export type BatchExportTableButtonProps = {
projectId: string;
Expand All @@ -30,6 +30,7 @@ export const BatchExportTableButton: React.FC<BatchExportTableButtonProps> = (
) => {
const [isExporting, setIsExporting] = React.useState(false);
const createExport = api.batchExport.create.useMutation();
const isEeEnabled = useIsEeEnabled();

const handleExport = async (format: BatchExportFileFormat) => {
setIsExporting(true);
Expand Down

0 comments on commit d3abad8

Please sign in to comment.