Redesign exports page (#10359)

* Redesign exports page

* Cleanup

* fix overhange
This commit is contained in:
Nicolas Mowen
2024-03-10 07:25:16 -06:00
committed by GitHub
parent 70825bc938
commit ee239744d8
4 changed files with 155 additions and 130 deletions

View File

@@ -3,14 +3,16 @@ import { CSSTransition } from "react-transition-group";
type ChipProps = {
className?: string;
children?: ReactNode[];
children?: ReactNode | ReactNode[];
in?: boolean;
onClick?: () => void;
};
export default function Chip({
className,
children,
in: inProp = true,
onClick,
}: ChipProps) {
const nodeRef = useRef(null);
@@ -30,6 +32,7 @@ export default function Chip({
<div
ref={nodeRef}
className={`flex px-2 py-1.5 rounded-2xl items-center z-10 ${className}`}
onClick={onClick}
>
{children}
</div>