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 Sep 27, 2024
1 parent d16a799 commit 636090a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, {
} from 'react';
import { useTranslation } from 'react-i18next';

import { css } from 'glamor';
import { css } from '@emotion/css';

import { useFeatureFlag } from '../../hooks/useFeatureFlag';
import { SvgArrowThinRight } from '../../icons/v1';
Expand Down Expand Up @@ -124,18 +124,16 @@ export function BalanceWithCarryover({

const getDefaultClassName = useCallback(
(balanceValue: number) =>
String(
css({
...getBalanceAmountStyle(balanceValue),
overflow: 'hidden',
textOverflow: 'ellipsis',
textAlign: 'right',
...(!isDisabled && {
cursor: 'pointer',
}),
':hover': { textDecoration: 'underline' },
css({
...getBalanceAmountStyle(balanceValue),
overflow: 'hidden',
textOverflow: 'ellipsis',
textAlign: 'right',
...(!isDisabled && {
cursor: 'pointer',
}),
),
':hover': { textDecoration: 'underline' },
}),
[getBalanceAmountStyle, isDisabled],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React, {
useState,
} from 'react';

import { css } from 'glamor';
import { css } from '@emotion/css';

import { envelopeBudget } from 'loot-core/src/client/queries';
import { evalArithmetic } from 'loot-core/src/shared/arithmetic';
Expand Down Expand Up @@ -367,13 +367,11 @@ export const ExpenseCategoryMonth = memo(function ExpenseCategoryMonth({
{props => (
<CellValueText
{...props}
className={String(
css({
cursor: 'pointer',
':hover': { textDecoration: 'underline' },
...makeAmountGrey(props.value),
}),
)}
className={css({
cursor: 'pointer',
':hover': { textDecoration: 'underline' },
...makeAmountGrey(props.value),
})}
/>
)}
</EnvelopeCellValue>
Expand Down Expand Up @@ -482,12 +480,10 @@ export function IncomeCategoryMonth({
{props => (
<CellValueText
{...props}
className={String(
css({
cursor: 'pointer',
':hover': { textDecoration: 'underline' },
}),
)}
className={css({
cursor: 'pointer',
':hover': { textDecoration: 'underline' },
})}
/>
)}
</EnvelopeCellValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React, {
} from 'react';
import { Trans } from 'react-i18next';

import { css } from 'glamor';
import { css } from '@emotion/css';

import { trackingBudget } from 'loot-core/src/client/queries';
import { evalArithmetic } from 'loot-core/src/shared/arithmetic';
Expand Down Expand Up @@ -378,15 +378,13 @@ export const CategoryMonth = memo(function CategoryMonth({
{props => (
<CellValueText
{...props}
className={String(
css({
cursor: 'pointer',
':hover': {
textDecoration: 'underline',
},
...makeAmountGrey(props.value),
}),
)}
className={css({
cursor: 'pointer',
':hover': {
textDecoration: 'underline',
},
...makeAmountGrey(props.value),
})}
/>
)}
</TrackingCellValue>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import React, { CSSProperties } from 'react';

import { type CSSProperties } from '../../style/types';
import { Text } from '../common/Text';
import { View } from '../common/View';

Expand Down

0 comments on commit 636090a

Please sign in to comment.