mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add and use clsx (classnames alternative) (#2249)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
1484c5a63b
commit
b50c54f855
18 changed files with 108 additions and 72 deletions
|
@ -9,7 +9,7 @@ type AvatarProps = {
|
|||
};
|
||||
|
||||
export const Avatar = ({ children, color, onClick }: AvatarProps) => (
|
||||
<div className={`Avatar`} style={{ background: color }} onClick={onClick}>
|
||||
<div className="Avatar" style={{ background: color }} onClick={onClick}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue