From 3831aa162262b170d3d787de6689bfc22674809d Mon Sep 17 00:00:00 2001 From: th3c0d3br34ker Date: Sat, 16 Sep 2023 23:01:59 +0530 Subject: [PATCH] Replace the use of Link component --- packages/desktop-client/src/components/Titlebar.tsx | 7 ++++--- .../desktop-client/src/components/manager/ServerURL.tsx | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/desktop-client/src/components/Titlebar.tsx b/packages/desktop-client/src/components/Titlebar.tsx index a91446e353f..77f98345da2 100644 --- a/packages/desktop-client/src/components/Titlebar.tsx +++ b/packages/desktop-client/src/components/Titlebar.tsx @@ -27,8 +27,8 @@ import AccountSyncCheck from './accounts/AccountSyncCheck'; import AnimatedRefresh from './AnimatedRefresh'; import { MonthCountSelector } from './budget/MonthCountSelector'; import Button, { ButtonWithLoading } from './common/Button'; -import ButtonLink from './common/ButtonLink'; import ExternalLink from './common/ExternalLink'; +import Link from './common/Link'; import Paragraph from './common/Paragraph'; import Text from './common/Text'; import View from './common/View'; @@ -69,13 +69,14 @@ function UncategorizedButton() { let count = useSheetValue(queries.uncategorizedCount()); return ( count !== 0 && ( - {count} uncategorized {count === 1 ? 'transaction' : 'transactions'} - + ) ); } diff --git a/packages/desktop-client/src/components/manager/ServerURL.tsx b/packages/desktop-client/src/components/manager/ServerURL.tsx index 3d62e31ab09..49b059142ad 100644 --- a/packages/desktop-client/src/components/manager/ServerURL.tsx +++ b/packages/desktop-client/src/components/manager/ServerURL.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import AnchorLink from '../common/AnchorLink'; +import Link from '../common/Link'; import Text from '../common/Text'; import View from '../common/View'; import { useServerURL } from '../ServerContext'; @@ -30,9 +30,9 @@ export default function ServerURL() { No server configured )} - + Change - + ); }