fix(ui): move id to menu button instead of wrapper div

This commit is contained in:
Gabe Kangas 2023-05-23 16:51:44 -07:00
parent e5138161c2
commit 432a348deb
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -136,9 +136,9 @@ export const UserDropdown: FC<UserDropdownProps> = ({
/>
)}
>
<div id={id} className={styles.root}>
<div className={styles.root}>
<Dropdown overlay={menu} trigger={['click']}>
<Button type="primary" icon={<UserOutlined className={styles.userIcon} />}>
<Button id={id} type="primary" icon={<UserOutlined className={styles.userIcon} />}>
<span
className={classnames([
styles.username,