mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* chore: views publish endpoints * fix: members and cycles endpoint * chore: added issue count and attachment count * chore: resolved build errors * chore: added created at and updated at in issue response * chore: comments, votes and reaction endpoints * chore: removed the comment, votes and reaction endpoint * feat Publish views * chore: added import statement * revert back unnecessary non ee changes * fix gantt layout * fix view issues * fix lints and remove unncessary code * revert back yarn.lock --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
"use client";
|
|
|
|
import { FC } from "react";
|
|
import { observer } from "mobx-react";
|
|
// ui
|
|
import { Logo, PhotoFilterIcon } from "@plane/ui";
|
|
// hooks
|
|
import { useView } from "@/plane-web/hooks/store/use-published-view";
|
|
// store
|
|
import { PublishStore } from "@/store/publish/publish.store";
|
|
import { ViewNavbarControls } from ".";
|
|
|
|
type Props = {
|
|
publishSettings: PublishStore;
|
|
};
|
|
|
|
export const ViewNavbarRoot: FC<Props> = observer((props) => {
|
|
const { publishSettings } = props;
|
|
|
|
const { viewData } = useView();
|
|
|
|
return (
|
|
<div className="relative flex justify-between w-full gap-4 px-5">
|
|
{/* project detail */}
|
|
<div className="flex flex-shrink-0 items-center gap-2">
|
|
{viewData?.logo_props ? (
|
|
<span className="h-7 w-7 flex-shrink-0 grid place-items-center">
|
|
<Logo logo={viewData?.logo_props} size={16} type="lucide" />
|
|
</span>
|
|
) : (
|
|
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded uppercase">
|
|
<PhotoFilterIcon className="h-4 w-4" />
|
|
</span>
|
|
)}
|
|
<div className="line-clamp-1 max-w-[300px] overflow-hidden text-lg font-medium">{viewData?.name || `...`}</div>
|
|
</div>
|
|
|
|
<div className="flex flex-shrink-0 items-center gap-2">
|
|
<ViewNavbarControls publishSettings={publishSettings} />
|
|
</div>
|
|
</div>
|
|
);
|
|
});
|