chore: handled props in create modal

This commit is contained in:
guru_sainath 2024-06-04 13:42:17 +05:30
parent 01d1456163
commit 80814978af
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ export const EstimateCreateStageOne: FC<TEstimateCreateStageOne> = (props) => {
label: !ESTIMATE_SYSTEMS[currentSystem]?.is_available ? (
<div className="relative flex items-center gap-2 cursor-no-drop text-custom-text-300">
{ESTIMATE_SYSTEMS[currentSystem]?.name}
<Tooltip tooltipContent={"coming soon"}>
<Tooltip tooltipContent={"Coming soon"}>
<Info size={12} />
</Tooltip>
</div>

View File

@ -8,7 +8,7 @@ import { ESTIMATE_OPTIONS_STAGE_ONE } from "@/constants/estimates";
import { cn } from "@/helpers/common.helper";
type TEstimateUpdateStageOne = {
handleEstimateEditType: (stage: TEstimateUpdateStageKeys) => void;
handleEstimateEditType?: (stage: TEstimateUpdateStageKeys) => void;
};
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",
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">
{stage.title}