Skip to content

Commit

Permalink
fix: fix a minor ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nainglinnkhant committed Jul 4, 2024
1 parent 1b8614e commit f61672b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/app/_components/create-task-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function CreateTaskDialog() {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a label" />
</SelectTrigger>
</FormControl>
Expand Down Expand Up @@ -143,7 +143,7 @@ export function CreateTaskDialog() {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a status" />
</SelectTrigger>
</FormControl>
Expand Down Expand Up @@ -176,7 +176,7 @@ export function CreateTaskDialog() {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a priority" />
</SelectTrigger>
</FormControl>
Expand Down
6 changes: 3 additions & 3 deletions src/app/_components/update-task-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function UpdateTaskSheet({ task, ...props }: UpdateTaskSheetProps) {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a label" />
</SelectTrigger>
</FormControl>
Expand Down Expand Up @@ -149,7 +149,7 @@ export function UpdateTaskSheet({ task, ...props }: UpdateTaskSheetProps) {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a status" />
</SelectTrigger>
</FormControl>
Expand Down Expand Up @@ -182,7 +182,7 @@ export function UpdateTaskSheet({ task, ...props }: UpdateTaskSheetProps) {
defaultValue={field.value}
>
<FormControl>
<SelectTrigger className="capitalize">
<SelectTrigger className={field.value && "capitalize"}>
<SelectValue placeholder="Select a priority" />
</SelectTrigger>
</FormControl>
Expand Down

0 comments on commit f61672b

Please sign in to comment.