Skip to content

Commit

Permalink
Optimize task styles & improve interactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesNg35 committed May 8, 2024
1 parent d7a2cf9 commit 5890c42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export function getPublicOrganizationTeamsAPI(profile_link: string, team_id: str
'tasks.teams',
'tasks.tags',
'members',
// 'members.role',
'members.employee',
'members.employee.user'
];
Expand Down
12 changes: 7 additions & 5 deletions apps/web/lib/features/task/task-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,9 @@ export function TaskInput(props: Props) {
task={inputTask}
forParentChildRelationship={true}
taskStatusClassName={clsxm(
`${
inputTask && inputTask.issueType === 'Bug'
? '!px-[0.3312rem] py-[0.2875rem] rounded-sm'
: '!px-[0.375rem] py-[0.375rem] rounded-sm'
} `,
inputTask && inputTask.issueType === 'Bug'
? '!px-[0.3312rem] py-[0.2875rem] rounded-sm'
: '!px-[0.375rem] py-[0.375rem] rounded-sm',
'border-none'
)}
/>
Expand Down Expand Up @@ -425,6 +423,7 @@ function TaskCard({
forParentChildRelationship?: boolean;
updatedTaskList?: ITeamTask[];
}) {
const [, setCount] = useState(0);
const t = useTranslations();
const activeTaskEl = useRef<HTMLLIElement | null>(null);
const { taskLabels: taskLabelsData } = useTaskLabels();
Expand Down Expand Up @@ -480,6 +479,7 @@ function TaskCard({
if (v && taskStatus) {
taskStatus.current = v;
}
setCount((c) => c + 1);
}}
defaultValue={taskStatus?.current as ITaskStatus}
task={null}
Expand All @@ -492,6 +492,7 @@ function TaskCard({
if (v && taskPriority) {
taskPriority.current = v;
}
setCount((c) => c + 1);
}}
defaultValue={taskPriority?.current as ITaskPriority}
task={null}
Expand All @@ -504,6 +505,7 @@ function TaskCard({
if (v && taskSize) {
taskSize.current = v;
}
setCount((c) => c + 1);
}}
defaultValue={taskSize?.current as ITaskSize}
task={null}
Expand Down

0 comments on commit 5890c42

Please sign in to comment.