Skip to content

Commit

Permalink
Merge pull request #4082 from tloncorp/po/tlon-3071-fix-longpress-on-…
Browse files Browse the repository at this point in the history
…arranged-sectionless-channels

group channel list: fix long press on arranged channels
  • Loading branch information
patosullivan authored Oct 18, 2024
2 parents 26c7a08 + 2053538 commit 9ff6284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ui/src/components/ChannelNavSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ export default function ChannelNavSection({
section,
channels,
onSelect,
onLongPress,
}: {
section: db.GroupNavSection;
channels: db.Channel[];
onSelect: (channel: any) => void;
onLongPress?: (channel: any) => void;
}) {
const sectionChannels = useMemo(
() =>
Expand Down Expand Up @@ -46,6 +48,7 @@ export default function ChannelNavSection({
model={getChannel(item.channelId)!}
useTypeIcon={true}
onPress={onSelect}
onLongPress={onLongPress}
/>
))}
</YStack>
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/ChannelNavSections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default function ChannelNavSections({
section={section}
channels={sectionChannels}
onSelect={onSelect}
onLongPress={onLongPress}
/>
);
})}
Expand Down

0 comments on commit 9ff6284

Please sign in to comment.