pl-fe: Refresh account header when changing pages

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-13 21:03:54 +02:00
parent 362fff4a90
commit baaa0e1102
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ const GroupLayout: React.FC<IGroupLayout> = ({ params, children }) => {
<>
<Layout.Main>
<Column size='lg' label={group ? group.display_name : ''} withHeader={false}>
<GroupHeader group={group} />
<GroupHeader key={`group-header-${groupId}`} group={group} />
<Tabs
key={`group-tabs-${groupId}`}

View file

@ -95,7 +95,7 @@ const ProfileLayout: React.FC<IProfileLayout> = ({ params, children }) => {
<Layout.Main>
<Column size='lg' label={account ? `@${getAcct(account, displayFqn)}` : ''} withHeader={false}>
<div className='space-y-4'>
<Header account={account} />
<Header key={`profile-header-${account?.id}`} account={account} />
<ProfileInfoPanel username={username} account={account} />
{account && showTabs && (