Skip to content

Commit

Permalink
Fix typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Apr 11, 2024
1 parent c620362 commit 3ecb95c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -177,7 +177,7 @@ function AdditionalAccountMenu({
height: styles.mobileMinHeight,
};

const getItemStyle = item => ({
const getItemStyle: ComponentProps<typeof Menu>['getItemStyle'] = item => ({
...itemStyle,
...(item.name === 'close' && { color: theme.errorTextMenu }),
});
Expand Down

0 comments on commit 3ecb95c

Please sign in to comment.