Skip to content

Commit

Permalink
Fix Loading
Browse files Browse the repository at this point in the history
  • Loading branch information
hv2308 committed Jan 3, 2025
1 parent 2972d98 commit 8c86f27
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions frontend/src/components/MessagesSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,16 @@ function MessagesSidebar(props) {
}
}
return (
<Spin spinning={props.loading}>
<Sider
style={{ background: "white" }}
width={400}
className="messages-sidebar-background"
<Sider
style={{ background: "white" }}
width={400}
className="messages-sidebar-background"
>
<Spin
wrapperClassName={css`
width: 100%;
`}
spinning={props.loading}
>
<div className="messages-sidebar-header">
<h1>{t("messages.sidebarTitle")}</h1>
Expand Down Expand Up @@ -129,8 +134,8 @@ function MessagesSidebar(props) {
}
})}
</div>
</Sider>
</Spin>
</Spin>
</Sider>
);
}

Expand Down

0 comments on commit 8c86f27

Please sign in to comment.