fix: remove unused eslint-disable, fix AIConfigTab updateProvider type
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d05480610d
commit
de990fb486
2 changed files with 1 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ export default function AIConfigTab() {
|
|||
|
||||
const activeProvider = config.ai_providers.find(p => p.id === config.active_provider);
|
||||
|
||||
const updateProvider = (field: keyof AIProvider, value: any) => {
|
||||
const updateProvider = (field: keyof AIProvider, value: AIProvider[keyof AIProvider]) => {
|
||||
setConfig(prev => {
|
||||
if (!prev) return prev;
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ export default function Header() {
|
|||
{ label: t('nav.product'), to: '/', anchor: 'product' },
|
||||
{ label: t('nav.pricing'), to: '/', anchor: 'pricing' },
|
||||
{ label: t('nav.contact'), to: 'mailto:hello@ai-impress.com', anchor: null, external: true },
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
], [t]);
|
||||
|
||||
// Memoise icons (static JSX) to prevent LimelightNav useLayoutEffect thrash on scroll
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue