Bookings UI improvements (#826)

This commit is contained in:
Omar López
2021-09-30 11:46:39 +01:00
committed by GitHub
parent 033c4835f7
commit dc6841e761
4 changed files with 160 additions and 131 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ type ActionType = {
icon: SVGComponent;
label: string;
disabled?: boolean;
color?: "primary" | "secondary";
} & ({ href?: never; onClick: () => any } | { href: string; onClick?: never });
interface Props {
@@ -30,7 +31,7 @@ const TableActions: FC<Props> = ({ actions }) => {
onClick={action.onClick}
StartIcon={action.icon}
disabled={action.disabled}
color="secondary">
color={action.color || "secondary"}>
{action.label}
</Button>
))}