Fix ProjectSelect.tsx
This commit is contained in:
parent
f9c9cbba78
commit
5a58b990e3
1 changed files with 2 additions and 2 deletions
|
@ -12,12 +12,12 @@ export function ProjectSelect({ onChange, selected }: Props) {
|
||||||
const projects: Project[] = data?.projects || [];
|
const projects: Project[] = data?.projects || [];
|
||||||
const options: Option[] = projects.map(project => ({
|
const options: Option[] = projects.map(project => ({
|
||||||
label: (
|
label: (
|
||||||
<div className="flex">
|
<div className="flex items-center">
|
||||||
<span
|
<span
|
||||||
style={{ backgroundColor: project.color }}
|
style={{ backgroundColor: project.color }}
|
||||||
className="flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"
|
className="flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"
|
||||||
></span>
|
></span>
|
||||||
<span className="flex align-items-center">{project.name}</span>
|
<span className="flex">{project.name}</span>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
value: String(project.id),
|
value: String(project.id),
|
||||||
|
|
Loading…
Reference in a new issue