Skip to content

Commit

Permalink
Use dev instead of Feature Flag
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Mar 23, 2024
1 parent 83941c8 commit 4400f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/issues/TaskManagementModal.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { FC, useState } from 'react';
import styles from '@/components/issues/Card.module.scss';
import { REQUEST_TABS } from './constants';
import { useRouter } from 'next/router';
import Modal from '../Modal';
import TaskRequestForm from './TaskRequestForm';
import ActionForm from './ActionForm';
import { TaskData, TaskRequestData } from '@/components/issues/constants';
import Image from 'next/image';
import { isMarkDownInTCREnabled } from '@/constants/FeatureFlags';

type TaskManagementProps = {
isUserAuthorized?: boolean;
Expand All @@ -33,6 +33,8 @@ const TaskManagementModal: FC<TaskManagementProps> = ({
handleCreateTask,
handleUpdateTask,
}) => {
const router = useRouter();
const { dev } = router.query;
const defaultTaskConversionTab = isUserAuthorized
? REQUEST_TABS.TASK_CREATION
: REQUEST_TABS.CREATION_REQUEST;
Expand Down Expand Up @@ -91,7 +93,7 @@ const TaskManagementModal: FC<TaskManagementProps> = ({
requestId={requestId}
taskId={taskId}
createTaskRequest={handleCreateTaskRequest}
isMarkDownInTCREnabled={isMarkDownInTCREnabled}
isMarkDownInTCREnabled={dev === 'true'}
/>
)}
{selectedTab === REQUEST_TABS.TASK_CREATION && (
Expand Down
1 change: 0 additions & 1 deletion src/constants/FeatureFlags.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const isTaskDetailsPageLinkEnabled = true;
export const isMarkDownInTCREnabled = false;

0 comments on commit 4400f09

Please sign in to comment.