mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1e152c666c
* chore: moved app & space from apps to root * chore: modified workspace configuration * chore: modified dockerfiles for space and web * chore: modified icons for space * feat: updated files for new svg icons supported by next-images * chore: added /spaces base path for next * chore: added compose config for space * chore: updated husky configuration * chore: updated workflows for new configuration * chore: changed app name to web * fix: resolved build errors with web * chore: reset file tracing root for both projects * chore: added nginx config for deploy * fix: eslint and tsconfig settings for space app * husky setup fixes based on new dir * eslint fixes * prettier formatting --------- Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
56 lines
1.7 KiB
TypeScript
56 lines
1.7 KiB
TypeScript
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import {
|
|
PeekOverviewHeader,
|
|
PeekOverviewIssueActivity,
|
|
PeekOverviewIssueDetails,
|
|
PeekOverviewIssueProperties,
|
|
} from "components/issues/peek-overview";
|
|
|
|
import { Loader } from "components/ui/loader";
|
|
import { IIssue } from "types/issue";
|
|
|
|
type Props = {
|
|
handleClose: () => void;
|
|
issueDetails: IIssue | undefined;
|
|
};
|
|
|
|
export const SidePeekView: React.FC<Props> = observer((props) => {
|
|
const { handleClose, issueDetails } = props;
|
|
|
|
return (
|
|
<div className="h-full w-full flex flex-col overflow-hidden">
|
|
<div className="w-full p-5">
|
|
<PeekOverviewHeader handleClose={handleClose} issueDetails={issueDetails} />
|
|
</div>
|
|
{issueDetails ? (
|
|
<div className="h-full w-full px-6 overflow-y-auto">
|
|
{/* issue title and description */}
|
|
<div className="w-full">
|
|
<PeekOverviewIssueDetails issueDetails={issueDetails} />
|
|
</div>
|
|
{/* issue properties */}
|
|
<div className="w-full mt-6">
|
|
<PeekOverviewIssueProperties issueDetails={issueDetails} />
|
|
</div>
|
|
{/* divider */}
|
|
<div className="h-[1] w-full border-t border-custom-border-200 my-5" />
|
|
{/* issue activity/comments */}
|
|
<div className="w-full pb-5">
|
|
<PeekOverviewIssueActivity issueDetails={issueDetails} />
|
|
</div>
|
|
</div>
|
|
) : (
|
|
<Loader className="px-6">
|
|
<Loader.Item height="30px" />
|
|
<div className="space-y-2 mt-3">
|
|
<Loader.Item height="20px" width="70%" />
|
|
<Loader.Item height="20px" width="60%" />
|
|
<Loader.Item height="20px" width="60%" />
|
|
</div>
|
|
</Loader>
|
|
)}
|
|
</div>
|
|
);
|
|
});
|