Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 24, 2024
1 parent 27b55b8 commit d70981f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Common/Export.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { useIsAuthorized } from "@/hooks/useIsAuthorized";
import request from "@/Utils/request/request";
import { Route } from "@/Utils/request/types";

import ButtonV2 from "./ButtonV2";

interface ExportItem {
options?: ShadcnMenuDropdownItemProps;
type?: "csv" | "json";
Expand Down Expand Up @@ -140,7 +142,7 @@ export const ExportButton = ({

return (
<>
<Button
<ButtonV2
disabled={isExporting || props.disabled}
onClick={() => {
let action = props.action;
Expand All @@ -154,8 +156,10 @@ export const ExportButton = ({
exportFile(action, props.filenamePrefix, type, parse);
}
}}
variant="outline_primary"
size="default"
className="tooltip mx-2 p-4 text-lg text-secondary-800 disabled:bg-transparent disabled:text-secondary-500"
variant="secondary"
ghost
circle
>
{isExporting ? (
<CareIcon icon="l-spinner-alt" className="animate-spin" />
Expand All @@ -165,7 +169,7 @@ export const ExportButton = ({
<span className={`tooltip-text ${tooltipClassName}`}>
{props.tooltip || "Export"}
</span>
</Button>
</ButtonV2>
</>
);
};
Expand Down

0 comments on commit d70981f

Please sign in to comment.