fix: type errors

This commit is contained in:
Henry
2024-03-24 14:42:29 +00:00
parent a2541d2f40
commit ac3fff47c7
2 changed files with 3 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
> >
<span className="text-[8px] font-medium leading-none text-white"> <span className="text-[8px] font-medium leading-none text-white">
{member?.value {member?.value
.split(" ") ?.split(" ")
.map((namePart) => .map((namePart) =>
namePart.charAt(0).toUpperCase(), namePart.charAt(0).toUpperCase(),
) )
@@ -240,7 +240,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
return ( return (
<> <>
<svg <svg
fill={label?.colourCode} fill={label?.colourCode ?? "#3730a3"}
className="h-2 w-2" className="h-2 w-2"
viewBox="0 0 6 6" viewBox="0 0 6 6"
aria-hidden="true" aria-hidden="true"

View File

@@ -7,7 +7,7 @@ interface CheckboxDropdownProps {
children: React.ReactNode; children: React.ReactNode;
items: { items: {
key: string; key: string;
value: string; value: string | null;
selected: boolean; selected: boolean;
}[]; }[];
handleSelect: (item: { key: string }) => void; handleSelect: (item: { key: string }) => void;