Skip to content

Commit

Permalink
Display spinner next to three dots
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbroman committed Jun 29, 2023
1 parent 99daac8 commit b9c1197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/src/renderer/apps/Courier/components/ChatLogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ type Props = {
path: string;
isMuted: boolean;
hasMenu: boolean;
rightAction?: React.ReactNode;
forceBackButton?: boolean;
isStandaloneChat?: boolean;
onBack: () => void;
};

const ChatLogHeaderPresenter = ({
path,
rightAction,
isMuted,
hasMenu = true,
forceBackButton = false,
Expand Down Expand Up @@ -144,12 +142,11 @@ const ChatLogHeaderPresenter = ({
)}
<ChatLogHeaderContent isStandaloneChat={isStandaloneChat} />
</Flex>
<Flex>
{rightAction}
<Flex gap={8}>
{chatLoader.isLoading && (
<Spinner size="16px" width={1.5} color="var(--rlm-text-color)" />
)}
{hasMenu && !chatLoader.isLoading && (
{hasMenu && (
<Menu
id={`chat-${path}-menu`}
orientation="bottom-left"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const StandaloneChatPassportPresenter = ({ onBack }: Props) => {
>
<ChatLogHeader
path={loggedInAccount.serverId}
rightAction={null}
isMuted={false}
hasMenu={false}
forceBackButton
Expand Down

0 comments on commit b9c1197

Please sign in to comment.