diff --git a/packages/desktop-client/src/components/common/Link.tsx b/packages/desktop-client/src/components/common/Link.tsx
index b63e6e3433a..546aa3068d6 100644
--- a/packages/desktop-client/src/components/common/Link.tsx
+++ b/packages/desktop-client/src/components/common/Link.tsx
@@ -65,11 +65,11 @@ const AnchorLink = ({ to, style, activeStyle, children }: AnchorLinkProps) => {
};
type LinkProps = {
- type?: 'button' | 'anchor';
+ linkType?: 'button' | 'anchor';
} & (ButtonLinkProps | AnchorLinkProps);
-export default function Link({ type = 'anchor', ...props }: LinkProps) {
- switch (type) {
+export default function Link({ linkType = 'anchor', ...props }: LinkProps) {
+ switch (linkType) {
case 'anchor':
return ;
@@ -77,6 +77,6 @@ export default function Link({ type = 'anchor', ...props }: LinkProps) {
return ;
default:
- throw new Error(`Unrecognised link type: ${type}`);
+ throw new Error(`Unrecognised link type: ${linkType}`);
}
}