diff --git a/src/shared/components/common/subscribe-button.tsx b/src/shared/components/common/subscribe-button.tsx index 7e49ca9a..9ae4426f 100644 --- a/src/shared/components/common/subscribe-button.tsx +++ b/src/shared/components/common/subscribe-button.tsx @@ -13,6 +13,7 @@ interface SubscribeButtonProps { onFollow: MouseEventHandler; onUnFollow: MouseEventHandler; loading?: boolean; + isLink?: boolean; } export function SubscribeButton({ @@ -23,6 +24,7 @@ export function SubscribeButton({ onFollow, onUnFollow, loading = false, + isLink = false, }: SubscribeButtonProps) { let i18key: NoOptionI18nKeys; @@ -44,14 +46,19 @@ export function SubscribeButton({ } } - const buttonClass = "btn d-block mb-2 w-100"; + const buttonClass = classNames( + "btn", + isLink ? "btn-link d-inline-block" : "d-block mb-2 w-100", + ); if (!UserService.Instance.myUserInfo) { return ( <>