pl-fe: Refresh account header when changing pages
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
362fff4a90
commit
baaa0e1102
2 changed files with 2 additions and 2 deletions
|
@ -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}`}
|
||||
|
|
|
@ -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 && (
|
||||
|
|
Loading…
Reference in a new issue