Save avatar svg in shared data for header

This commit is contained in:
DwCay
2022-06-01 10:27:49 +03:00
parent 0d127aa5fa
commit 3236f2ae94
3 changed files with 14 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ function DropdownProfile({
onClick={() => setDropdownOpen(!dropdownOpen)}
aria-expanded={dropdownOpen}
>
<img className="w-8 h-8 rounded-full" src={UserAvatar} width="32" height="32" alt="User" />
<img className="w-8 h-8 rounded-full" src={localStorage.getItem('svgAvatar') || UserAvatar} width="32" height="32" alt="User" />
<div className="flex items-center truncate">
<span className="truncate ml-2 text-sm font-medium group-hover:text-slate-800">Acme Inc.</span>
<svg className="w-3 h-3 shrink-0 ml-1 fill-current text-slate-400" viewBox="0 0 12 12">