Skip to content

Commit

Permalink
remove loader from the breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymikhadyuk committed Nov 30, 2023
1 parent 561d89e commit ca72b4f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
selectCommonLayoutCommonId,
} from "@/store/states";
import { useGoToCreateCommon } from "../../../../../../hooks";
import { LoadingBreadcrumbsItem } from "../LoadingBreadcrumbsItem";
import { Separator } from "../Separator";
import { ActiveFeedBreadcrumbsItem, FeedBreadcrumbsItem } from "./components";
import styles from "./FeedItemBreadcrumbs.module.scss";
Expand Down Expand Up @@ -60,7 +59,6 @@ const FeedItemBreadcrumbs: FC<FeedItemBreadcrumbsProps> = (props) => {

return (
<ul className={styles.container}>
{breadcrumbs.areItemsLoading && <LoadingBreadcrumbsItem />}
{!breadcrumbs.areItemsLoading &&
breadcrumbs.items.map((item, index) => (
<React.Fragment key={item.commonId}>
Expand All @@ -75,7 +73,7 @@ const FeedItemBreadcrumbs: FC<FeedItemBreadcrumbsProps> = (props) => {
))}
{breadcrumbs.activeItem && (
<>
{(breadcrumbs.areItemsLoading || breadcrumbs.items.length > 0) && (
{!breadcrumbs.areItemsLoading && breadcrumbs.items.length > 0 && (
<Separator />
)}
<ActiveFeedBreadcrumbsItem
Expand Down

0 comments on commit ca72b4f

Please sign in to comment.