Merge pull request #101 from vegaprotocol/frontend-monorepo-100

frontend-monorepo-100 Allow Lozenge component to accept props i.e. da…
This commit is contained in:
Sam Keen 2022-03-18 16:41:39 +00:00 committed by GitHub
commit 452ad61fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,10 @@ export const Lozenge = ({
variant,
className,
details,
...props
}: LozengeProps) => {
return (
<span className={getWrapperClasses(className)}>
<span className={getWrapperClasses(className)} {...props}>
<span className={getLozengeClasses(variant)}>{children}</span>
{details && <span>{details}</span>}