Skip to content

Commit

Permalink
fix(List): don't export internal props
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Mar 6, 2024
1 parent 42f51c3 commit 774f194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/list/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import type { ListAtom, ListItem } from "../../atoms/list-atom";
import { useList } from "../../hooks";

export type RemoveButtonProps = { remove: () => void };
export type RemoveButtonProp = RenderProp<RemoveButtonProps, "RemoveButton">;
type RemoveButtonProp = RenderProp<RemoveButtonProps, "RemoveButton">;

export type AddButtonProps<Fields extends FormFields = Record<string, never>> =
{
add: (fields?: Fields) => void;
};
export type AddButtonProp<Fields extends FormFields> = RenderProp<
type AddButtonProp<Fields extends FormFields> = RenderProp<
AddButtonProps<Fields>,
"AddButton"
>;

export type EmptyProp = RenderProp<unknown, "Empty">;
type EmptyProp = RenderProp<unknown, "Empty">;

export type ListItemProps<Fields extends FormFields> = {
/**
Expand Down

0 comments on commit 774f194

Please sign in to comment.