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:
commit
452ad61fba
@ -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>}
|
||||
|
Loading…
Reference in New Issue
Block a user