Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ import { useDispatch } from 'react-redux'
import { Link } from 'react-router'

import { push } from 'utils/navigation'
import { pickWinnersPage } from 'utils/route'
import { contestPage, pickWinnersPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
import { NotificationHeader } from './components/NotificationHeader'
import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { getEntityLink } from './utils'

const messages = {
title: 'Your Remix Contest Ended',
Expand Down Expand Up @@ -48,7 +47,7 @@ export const ArtistRemixContestEndedNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { useDispatch } from 'react-redux'

import { TrackLink } from 'components/link'
import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
import { NotificationHeader } from './components/NotificationHeader'
import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { getEntityLink } from './utils'

const messages = {
title: 'Remix Contest',
Expand All @@ -40,7 +40,7 @@ export const ArtistRemixContestEndingSoonNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { useDispatch } from 'react-redux'

import { TrackLink } from 'components/link'
import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
import { NotificationHeader } from './components/NotificationHeader'
import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { getEntityLink } from './utils'

const messages = {
title: 'New Remix Submission!',
Expand All @@ -42,7 +42,7 @@ export const ArtistRemixContestSubmissionsNotification = ({

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Flex, IconTrophy } from '@audius/harmony'
import { useDispatch } from 'react-redux'

import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
Expand All @@ -17,7 +18,6 @@ import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { TrackContent } from './components/TrackContent'
import { UserNameLink } from './components/UserNameLink'
import { getEntityLink } from './utils'

const messages = {
title: 'Remix Contest',
Expand All @@ -44,7 +44,7 @@ export const FanRemixContestEndedNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Flex, IconTrophy } from '@audius/harmony'
import { useDispatch } from 'react-redux'

import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
Expand All @@ -17,7 +18,6 @@ import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { TrackContent } from './components/TrackContent'
import { UserNameLink } from './components/UserNameLink'
import { getEntityLink } from './utils'

const messages = {
title: 'Remix Contest',
Expand All @@ -44,7 +44,7 @@ export const FanRemixContestEndingSoonNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useDispatch } from 'react-redux'

import { TrackLink } from 'components/link'
import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
Expand All @@ -18,7 +19,6 @@ import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { TrackContent } from './components/TrackContent'
import { UserNameLink } from './components/UserNameLink'
import { getEntityLink } from './utils'

const messages = {
title: 'New Remix Contest',
Expand Down Expand Up @@ -46,7 +46,7 @@ export const FanRemixContestStartedNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Flex, IconTrophy } from '@audius/harmony'
import { useDispatch } from 'react-redux'

import { push } from 'utils/navigation'
import { contestPage } from 'utils/route'

import { NotificationBody } from './components/NotificationBody'
import { NotificationFooter } from './components/NotificationFooter'
Expand All @@ -17,7 +18,6 @@ import { NotificationTile } from './components/NotificationTile'
import { NotificationTitle } from './components/NotificationTitle'
import { TrackContent } from './components/TrackContent'
import { UserNameLink } from './components/UserNameLink'
import { getEntityLink } from './utils'

const messages = {
title: 'Remix Contest',
Expand All @@ -43,7 +43,7 @@ export const FanRemixContestWinnersSelectedNotification = (

const handleClick = useCallback(() => {
if (entity) {
dispatch(push(getEntityLink(entity)))
dispatch(push(contestPage(entity.permalink)))
}
}, [entity, dispatch])

Expand Down
Loading