Skip to content
Snippets Groups Projects
Commit d78bd8ac authored by Kamil Mielnik's avatar Kamil Mielnik
Browse files

Revert "Make types more specific"

This reverts commit 2e6994b5.
parent 0e164201
No related branches found
No related tags found
No related merge requests found
......@@ -3,19 +3,14 @@ import { t } from "ttag";
import { Button, Flex, Icon, rem, Tooltip } from "metabase/ui";
type Props =
| {
className?: string;
highlighted: boolean;
status: "clear" | "reset";
onClick: () => void;
}
| {
className?: string;
highlighted?: never;
status: "empty" | "none";
onClick?: never;
};
import type { Status } from "./types";
type Props = {
className?: string;
highlighted?: boolean;
status: Status;
onClick?: () => void;
};
const COMPACT_BUTTON_PADDING = 4;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment