diff --git a/packages/desktop-client/src/components/modals/AccountMenuModal.tsx b/packages/desktop-client/src/components/modals/AccountMenuModal.tsx index 40e1ca1d39b..f798c50327a 100644 --- a/packages/desktop-client/src/components/modals/AccountMenuModal.tsx +++ b/packages/desktop-client/src/components/modals/AccountMenuModal.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { type ComponentProps, useState } from 'react'; import { useLiveQuery } from 'loot-core/src/client/query-hooks'; import { q } from 'loot-core/src/shared/query'; @@ -177,7 +177,7 @@ function AdditionalAccountMenu({ height: styles.mobileMinHeight, }; - const getItemStyle = item => ({ + const getItemStyle: ComponentProps['getItemStyle'] = item => ({ ...itemStyle, ...(item.name === 'close' && { color: theme.errorTextMenu }), });