* chore: lint/format all files * Fix config sidebar button state (#602) * chore: Update deno.lock version and add Radix UI slider component (#601) * fix: improve how table addresses even/odd rows --------- Co-authored-by: philon- <philon-@users.noreply.github.com> Co-authored-by: Kamil Dzieniszewski <kamil.dzieniszewski@gmail.com>
22 lines
441 B
TypeScript
22 lines
441 B
TypeScript
import { vi } from "vitest";
|
|
|
|
vi.mock("@components/UI/Button.tsx", () => ({
|
|
Button: ({ children, name, disabled, onClick }: {
|
|
children: React.ReactNode;
|
|
variant: string;
|
|
name: string;
|
|
disabled?: boolean;
|
|
onClick: () => void;
|
|
}) => (
|
|
<button
|
|
type="button"
|
|
name={name}
|
|
data-testid={`button-${name}`}
|
|
disabled={disabled}
|
|
onClick={onClick}
|
|
>
|
|
{children}
|
|
</button>
|
|
),
|
|
}));
|