Change active tab when navigated to another profile page

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
emoji-improvements
marcin mikołajczak 2022-09-03 23:19:30 +02:00
rodzic df748d754a
commit 005f317a93
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -105,7 +105,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
</BundleContainer>
{account && showTabs && (
<Tabs items={tabItems} activeItem={activeItem} />
<Tabs key={`profile-tabs-${account.id}`} items={tabItems} activeItem={activeItem} />
)}
{children}