move calendso branding into pro (#629)
* badge * mv branding to paid plan * upgrade ts * hideBranding check * user.plan * lint fixes * `isBrandingHidden` helper * hide pro for non-pros
This commit is contained in:
1 parent
8ee68e2ace
commit
ab78bb3802
8 files changed
+185
-55
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import classNames from "@lib/classNames";
|
||||
import React from "react";
|
||||
|
||||
export type BadgeProps = {
|
||||
variant: "default" | "success";
|
||||
} & JSX.IntrinsicElements["span"];
|
||||
|
||||
export const Badge = function Badge(props: BadgeProps) {
|
||||
const { variant, className, ...passThroughProps } = props;
|
||||
|
||||
return (
|
||||
<span
|
||||
{...passThroughProps}
|
||||
className={classNames(
|
||||
"font-bold px-2 py-0.5 inline-block",
|
||||
variant === "default" && "bg-yellow-100 text-yellow-800",
|
||||
variant === "success" && "bg-green-100 text-green-800",
|
||||
className
|
||||
)}>
|
||||
{props.children}
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
export default Badge;
|
||||
Reference in new issue
Block a user