Skip to content

A local-first personal finance app

:fire: remove unused report prop from Link component (#4083)

Matiss Janis Aboltinsd5ebcced386b
diff --git a/packages/desktop-client/src/components/common/Link.tsx b/packages/desktop-client/src/components/common/Link.tsx
index 1c89a9c868..d5194fb4a8 100644
--- a/packages/desktop-client/src/components/common/Link.tsx
+++ b/packages/desktop-client/src/components/common/Link.tsx
@@ -8,8 +8,6 @@ import { NavLink, useMatch } from 'react-router-dom';
import { css } from '@emotion/css';
-import { type CustomReportEntity } from 'loot-core/types/models/reports';
-
import { useNavigate } from '../../hooks/useNavigate';
import { styles } from '../../style';
import { theme } from '../../style/theme';
@@ -34,7 +32,6 @@ type InternalLinkProps = {
style?: CSSProperties;
activeStyle?: CSSProperties;
children?: ReactNode;
- report?: CustomReportEntity;
isDisabled?: boolean;
};
@@ -121,7 +118,6 @@ const InternalLink = ({
style,
activeStyle,
children,
- report,
isDisabled,
}: InternalLinkProps) => {
const path = to ?? '';
@@ -130,7 +126,6 @@ const InternalLink = ({
return (
<NavLink
to={path}
- state={report ? { report } : {}}
className={css([styles.smallText, style, match ? activeStyle : null])}
onClick={e => {
if (isDisabled) {
diff --git a/upcoming-release-notes/4083.md b/upcoming-release-notes/4083.md
new file mode 100644
index 0000000000..45bf274bf7
--- /dev/null
+++ b/upcoming-release-notes/4083.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [MatissJanis]
+---
+
+Remove unused `report` prop from `Link` component.