Skip to content

Commit

Permalink
😀 Hide shorts on channel view (#6326)
Browse files Browse the repository at this point in the history
* FIx link on rewards dashboard

* Remove shorts from channel videos

* Remove usersnap reinit
  • Loading branch information
ikprk authored May 24, 2024
1 parent a432bfe commit 6741152
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
6 changes: 0 additions & 6 deletions packages/atlas/src/providers/user/user.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,9 @@ export const UserProvider: FC<PropsWithChildren> = ({ children }) => {
memberId: currentUser?.membershipId,
channelId: currentMemberships?.[0].channels[0]?.id,
}
const hasCreatedSingleVideo = currentMemberships?.[0]?.channels.some((channel) => channel.totalVideosCreated > 0)

SentryLogger.setUser(user)
UserEventsLogger.setUser(user)
// @ts-ignore custom prop required by usersnap
window.Usersnap?.init({
...user,
role: hasCreatedSingleVideo ? 'creator' : 'default',
})
}, [
currentMemberships,
currentUser?.email,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,8 @@ export const YppDashboardMainTab: FC = () => {
description={
<>
Drop the link of your post to{' '}
<TextButton as="span" to={atlasConfig.general.joystreamDiscordUrl}>
#shared-NFTs
</TextButton>{' '}
on Discord to participate in rewards.
<TextButton to={atlasConfig.general.joystreamDiscordUrl}>#shared-NFTs</TextButton> on Discord to
participate in rewards.
</>
}
rewardTooltip={
Expand All @@ -521,10 +519,8 @@ export const YppDashboardMainTab: FC = () => {
description={
<>
Drop the link of your post to{' '}
<TextButton as="span" to={atlasConfig.general.joystreamDiscordUrl}>
#shared-CRTs
</TextButton>{' '}
on Discord to participate in rewards.
<TextButton to={atlasConfig.general.joystreamDiscordUrl}>#shared-CRTs</TextButton> on Discord to
participate in rewards.
</>
}
rewardTooltip={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const ChannelVideos: FC<ChannelVideosProps> = ({
isPublic_eq: true,
createdAt_lt: USER_TIMESTAMP,
isCensored_eq: false,
isShort_eq: false,
thumbnailPhoto: {
isAccepted_eq: true,
},
Expand Down

0 comments on commit 6741152

Please sign in to comment.