Skip to content

Commit

Permalink
Hide subscribed icon on community results feed, use primary color (ae…
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Aug 11, 2024
1 parent 381cba7 commit 3a25bf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/features/community/CommunitySummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default function CommunitySummary({ community }: CommunitySummaryProps) {
community={community.community}
showInstanceWhenRemote
subscribed={community.subscribed}
hideSubscribed
/>
<RightContainer>
<ActionButton
Expand Down
8 changes: 6 additions & 2 deletions src/features/labels/links/CommunityLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const StyledItemIcon = styled(ItemIcon)`
`;

const SubscribedIcon = styled(IonIcon)`
color: var(--ion-color-danger);
color: var(--ion-color-primary);
vertical-align: middle;
margin-bottom: 1px;
Expand All @@ -51,6 +51,7 @@ interface CommunityLinkProps {
tinyIcon?: boolean;
disableInstanceClick?: boolean;
hideIcon?: boolean;
hideSubscribed?: boolean;

className?: string;
}
Expand All @@ -63,6 +64,7 @@ export default function CommunityLink({
tinyIcon,
disableInstanceClick,
hideIcon,
hideSubscribed,
}: CommunityLinkProps) {
const [present] = useIonActionSheet();

Expand Down Expand Up @@ -126,7 +128,9 @@ export default function CommunityLink({
const end = (
<>
{instance}
{showSubscribed && isSubscribed && <SubscribedIcon icon={heart} />}
{showSubscribed && !hideSubscribed && isSubscribed && (
<SubscribedIcon icon={heart} />
)}
</>
);

Expand Down

0 comments on commit 3a25bf5

Please sign in to comment.