Fix ProjectSelect.tsx

This commit is contained in:
0x1eef 2024-03-31 01:06:00 -03:00
parent f9c9cbba78
commit 5a58b990e3

View file

@ -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),