mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): remove key prop
This commit is contained in:
@ -4,19 +4,14 @@ import { ReactNode } from 'react';
|
|||||||
type IAIOptionProps = {
|
type IAIOptionProps = {
|
||||||
children: ReactNode | string | number;
|
children: ReactNode | string | number;
|
||||||
value: string | number;
|
value: string | number;
|
||||||
key: string | number;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function IAIOption(props: IAIOptionProps) {
|
export default function IAIOption(props: IAIOptionProps) {
|
||||||
const { children, value, key } = props;
|
const { children, value } = props;
|
||||||
const [base800, base200] = useToken('colors', ['base.800', 'base.200']);
|
const [base800, base200] = useToken('colors', ['base.800', 'base.200']);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<option
|
<option value={value} style={{ background: base800, color: base200 }}>
|
||||||
key={key}
|
|
||||||
value={value}
|
|
||||||
style={{ background: base800, color: base200 }}
|
|
||||||
>
|
|
||||||
{children}
|
{children}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user