fix(ui): remove key prop

This commit is contained in:
psychedelicious 2023-03-12 14:59:13 +11:00
parent 220f7373c8
commit f4b7f80d59

View File

@ -4,19 +4,14 @@ import { ReactNode } from 'react';
type IAIOptionProps = {
children: ReactNode | string | number;
value: string | number;
key: string | number;
};
export default function IAIOption(props: IAIOptionProps) {
const { children, value, key } = props;
const { children, value } = props;
const [base800, base200] = useToken('colors', ['base.800', 'base.200']);
return (
<option
key={key}
value={value}
style={{ background: base800, color: base200 }}
>
<option value={value} style={{ background: base800, color: base200 }}>
{children}
</option>
);