mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
fix: replace various anchor tags with buttons to prevent text selection on repeated clicks
This commit is contained in:
parent
6ce1b9d850
commit
fc91ed49bc
4 changed files with 8 additions and 8 deletions
|
|
@ -11,13 +11,13 @@ export default function Logout() {
|
|||
};
|
||||
|
||||
return (
|
||||
<a
|
||||
<button
|
||||
className="flex cursor-pointer items-center gap-3 rounded-md py-3 px-3 text-sm text-white transition-colors duration-200 hover:bg-gray-500/10"
|
||||
onClick={clickHandler}
|
||||
>
|
||||
<LogOutIcon />
|
||||
{user?.display || user?.username || 'USER'}
|
||||
<small>Log out</small>
|
||||
</a>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue