fix: intake refactor (#6698)
* fix: refactor * fix: refactor * fix: type * chore: added source data in intake * fix: css --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
This commit is contained in:
parent
075c234385
commit
e22265dc93
18 changed files with 104 additions and 94 deletions
|
|
@ -3,3 +3,4 @@ export * from "./issue-properties-activity";
|
|||
export * from "./issue-type-switcher";
|
||||
export * from "./issue-type-activity";
|
||||
export * from "./parent-select-root";
|
||||
export * from "./issue-creator";
|
||||
|
|
|
|||
36
web/ce/components/issues/issue-details/issue-creator.tsx
Normal file
36
web/ce/components/issues/issue-details/issue-creator.tsx
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
import { FC } from "react";
|
||||
import Link from "next/link";
|
||||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
|
||||
type TIssueUser = {
|
||||
activityId: string;
|
||||
customUserName?: string;
|
||||
};
|
||||
|
||||
export const IssueCreatorDisplay: FC<TIssueUser> = (props) => {
|
||||
const { activityId, customUserName } = props;
|
||||
// hooks
|
||||
const {
|
||||
activity: { getActivityById },
|
||||
} = useIssueDetail();
|
||||
|
||||
const activity = getActivityById(activityId);
|
||||
|
||||
if (!activity) return <></>;
|
||||
|
||||
return (
|
||||
<>
|
||||
{customUserName ? (
|
||||
<span className="text-custom-text-100 font-medium">{customUserName || "Plane"}</span>
|
||||
) : (
|
||||
<Link
|
||||
href={`/${activity?.workspace_detail?.slug}/profile/${activity?.actor_detail?.id}`}
|
||||
className="hover:underline text-custom-text-100 font-medium"
|
||||
>
|
||||
{activity.actor_detail?.display_name}
|
||||
</Link>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
@ -11,12 +11,7 @@ export type TProperties = {
|
|||
icon: ReactNode;
|
||||
isPro: boolean;
|
||||
isEnabled: boolean;
|
||||
renderChildren?: (
|
||||
currentProjectDetails: IProject,
|
||||
isAdmin: boolean,
|
||||
handleSubmit: (featureKey: string, featureProperty: string) => Promise<void>,
|
||||
workspaceSlug: string
|
||||
) => ReactNode;
|
||||
renderChildren?: (currentProjectDetails: IProject, workspaceSlug: string) => ReactNode;
|
||||
};
|
||||
export type TFeatureList = {
|
||||
[key: string]: TProperties;
|
||||
|
|
|
|||
1
web/ce/store/project-inbox.store.ts
Normal file
1
web/ce/store/project-inbox.store.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "@/store/inbox/project-inbox.store";
|
||||
Loading…
Add table
Add a link
Reference in a new issue