Skip to content

Commit

Permalink
Client: Navigation: fixed blinking of share button
Browse files Browse the repository at this point in the history
  • Loading branch information
gopienkonikita committed Dec 4, 2024
1 parent b95ea89 commit 75f2988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions packages/client/src/pages/Home/Section/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,6 @@ const SectionHeaderContent = (props) => {
},
];

const currentIsPublicRoomType =
isLoading && typeof stateIsPublicRoomType === "boolean"
? stateIsPublicRoomType
: isPublicRoomType;

const isCurrentRoom =
isLoading && typeof stateIsRoom === "boolean" ? stateIsRoom : isRoom;

Expand Down Expand Up @@ -895,7 +890,7 @@ export default inject(
const isExternal = external || navigationPath.find((r) => r.external);

const showNavigationButton =
isLoading || !security?.CopyLink || isPublicRoom || isArchive
!security?.CopyLink || isPublicRoom || isArchive
? false
: security?.Read && isShared;

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/components/navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const Navigation = ({

const navigationTitleNode = (
<div className="title-block">
{titleIcon && (
{titleIcon && !isRootFolder && (
<ReactSVG
data-tooltip-id="iconTooltip"
className="title-icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ControlButtons = ({
};

const navigationButtonBlock =
navigationButtonLabel && !isFrame ? (
navigationButtonLabel && !isFrame && !isRootFolder ? (
<Button
className="navigation_button"
label={navigationButtonLabel}
Expand Down

0 comments on commit 75f2988

Please sign in to comment.