mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: handled props in create modal
This commit is contained in:
parent
01d1456163
commit
80814978af
@ -29,7 +29,7 @@ export const EstimateCreateStageOne: FC<TEstimateCreateStageOne> = (props) => {
|
|||||||
label: !ESTIMATE_SYSTEMS[currentSystem]?.is_available ? (
|
label: !ESTIMATE_SYSTEMS[currentSystem]?.is_available ? (
|
||||||
<div className="relative flex items-center gap-2 cursor-no-drop text-custom-text-300">
|
<div className="relative flex items-center gap-2 cursor-no-drop text-custom-text-300">
|
||||||
{ESTIMATE_SYSTEMS[currentSystem]?.name}
|
{ESTIMATE_SYSTEMS[currentSystem]?.name}
|
||||||
<Tooltip tooltipContent={"coming soon"}>
|
<Tooltip tooltipContent={"Coming soon"}>
|
||||||
<Info size={12} />
|
<Info size={12} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,7 @@ import { ESTIMATE_OPTIONS_STAGE_ONE } from "@/constants/estimates";
|
|||||||
import { cn } from "@/helpers/common.helper";
|
import { cn } from "@/helpers/common.helper";
|
||||||
|
|
||||||
type TEstimateUpdateStageOne = {
|
type TEstimateUpdateStageOne = {
|
||||||
handleEstimateEditType: (stage: TEstimateUpdateStageKeys) => void;
|
handleEstimateEditType?: (stage: TEstimateUpdateStageKeys) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const EstimateUpdateStageOne: FC<TEstimateUpdateStageOne> = (props) => {
|
export const EstimateUpdateStageOne: FC<TEstimateUpdateStageOne> = (props) => {
|
||||||
@ -24,7 +24,7 @@ export const EstimateUpdateStageOne: FC<TEstimateUpdateStageOne> = (props) => {
|
|||||||
"border border-custom-border-300 cursor-pointer space-y-1 p-3 rounded transition-colors",
|
"border border-custom-border-300 cursor-pointer space-y-1 p-3 rounded transition-colors",
|
||||||
stage?.is_ee ? `bg-custom-background-90` : `hover:bg-custom-background-90`
|
stage?.is_ee ? `bg-custom-background-90` : `hover:bg-custom-background-90`
|
||||||
)}
|
)}
|
||||||
onClick={() => !stage?.is_ee && handleEstimateEditType(stage.key)}
|
onClick={() => !stage?.is_ee && handleEstimateEditType && handleEstimateEditType(stage.key)}
|
||||||
>
|
>
|
||||||
<h3 className="text-base font-medium relative flex items-center gap-2">
|
<h3 className="text-base font-medium relative flex items-center gap-2">
|
||||||
{stage.title}
|
{stage.title}
|
||||||
|
Loading…
Reference in New Issue
Block a user