fix(profile): unblock tag filter
All checks were successful
Release to Staging / build_and_release (push) Successful in 44s

This commit is contained in:
enes 2024-10-28 13:08:47 +01:00
parent 3906c70bc9
commit 15af98359d

View File

@ -212,7 +212,7 @@ export const ProfilePage = () => {
kind: NDKKind.MuteList, kind: NDKKind.MuteList,
content: muteListEvent.content, content: muteListEvent.content,
created_at: now(), created_at: now(),
tags: tags.filter((item) => item[0] !== 'a' || item[1] !== profilePubkey) tags: tags.filter((item) => item[0] !== 'p' || item[1] !== profilePubkey)
} }
setLoadingSpinnerDesc('Updating mute list event') setLoadingSpinnerDesc('Updating mute list event')
@ -420,43 +420,41 @@ export const ProfilePage = () => {
</svg> </svg>
Share Share
</a> </a>
{!isOwnProfile && ( <>
<> <a
<a className='dropdown-item dropdownMainMenuItem'
className='dropdown-item dropdownMainMenuItem' id='reportUser'
id='reportUser' onClick={() => setShowReportPopUp(true)}
onClick={() => setShowReportPopUp(true)} >
<svg
xmlns='http://www.w3.org/2000/svg'
viewBox='0 0 512 512'
width='1em'
height='1em'
fill='currentColor'
className='IBMSMSMSSS_Author_Top_Icon'
> >
<svg <path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z'></path>
xmlns='http://www.w3.org/2000/svg' </svg>
viewBox='0 0 512 512' Report
width='1em' </a>
height='1em' <a
fill='currentColor' className='dropdown-item dropdownMainMenuItem'
className='IBMSMSMSSS_Author_Top_Icon' onClick={isBlocked ? handleUnblock : handleBlock}
> >
<path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z'></path> <svg
</svg> xmlns='http://www.w3.org/2000/svg'
Report viewBox='-32 0 512 512'
</a> width='1em'
<a height='1em'
className='dropdown-item dropdownMainMenuItem' fill='currentColor'
onClick={isBlocked ? handleUnblock : handleBlock} className='IBMSMSMSSS_Author_Top_Icon'
> >
<svg <path d='M323.5 51.25C302.8 70.5 284 90.75 267.4 111.1C240.1 73.62 206.2 35.5 168 0C69.75 91.12 0 210 0 281.6C0 408.9 100.2 512 224 512s224-103.1 224-230.4C448 228.4 396 118.5 323.5 51.25zM304.1 391.9C282.4 407 255.8 416 226.9 416c-72.13 0-130.9-47.73-130.9-125.2c0-38.63 24.24-72.64 72.74-130.8c7 8 98.88 125.4 98.88 125.4l58.63-66.88c4.125 6.75 7.867 13.52 11.24 19.9C364.9 290.6 353.4 357.4 304.1 391.9z'></path>
xmlns='http://www.w3.org/2000/svg' </svg>
viewBox='-32 0 512 512' {isBlocked ? 'Unblock' : 'Block User'}
width='1em' </a>
height='1em' </>
fill='currentColor'
className='IBMSMSMSSS_Author_Top_Icon'
>
<path d='M323.5 51.25C302.8 70.5 284 90.75 267.4 111.1C240.1 73.62 206.2 35.5 168 0C69.75 91.12 0 210 0 281.6C0 408.9 100.2 512 224 512s224-103.1 224-230.4C448 228.4 396 118.5 323.5 51.25zM304.1 391.9C282.4 407 255.8 416 226.9 416c-72.13 0-130.9-47.73-130.9-125.2c0-38.63 24.24-72.64 72.74-130.8c7 8 98.88 125.4 98.88 125.4l58.63-66.88c4.125 6.75 7.867 13.52 11.24 19.9C364.9 290.6 353.4 357.4 304.1 391.9z'></path>
</svg>
{isBlocked ? 'Unblock' : 'Block User'}
</a>
</>
)}
</div> </div>
</div> </div>
</div> </div>