Skip to content

Commit

Permalink
Replace the use of Link component
Browse files Browse the repository at this point in the history
  • Loading branch information
th3c0d3br34ker committed Sep 16, 2023
1 parent 6972f09 commit 3831aa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions packages/desktop-client/src/components/Titlebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -69,13 +69,14 @@ function UncategorizedButton() {
let count = useSheetValue(queries.uncategorizedCount());
return (
count !== 0 && (
<ButtonLink
<Link
linkType="button"
type="bare"
to="/accounts/uncategorized"
style={{ color: colors.r5 }}
>
{count} uncategorized {count === 1 ? 'transaction' : 'transactions'}
</ButtonLink>
</Link>
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/desktop-client/src/components/manager/ServerURL.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -30,9 +30,9 @@ export default function ServerURL() {
<strong>No server configured</strong>
)}
</Text>
<AnchorLink to="/config-server" style={{ marginLeft: 15 }}>
<Link to="/config-server" style={{ marginLeft: 15 }}>
Change
</AnchorLink>
</Link>
</View>
);
}

0 comments on commit 3831aa1

Please sign in to comment.