Skip to content

Commit

Permalink
Add a sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Apr 3, 2023
1 parent 03d17d2 commit f06e237
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions src/utils/useSponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,36 @@ export function useSponsors(): RequestHookResult<Sponsors> {
'id'
),
silver: uniqBy(
(Date.now() < +new Date(2024, 2, 10)
(Date.now() < +new Date(2024, 3, 3)
? [
{
id: 'automatenspiele',
url:
'https://automatenspielex.com/online-casino-bonus/ohne-einzahlung',
id: 'slotzilla',
url: 'https://www.slotozilla.com/de/',
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/date-fns-org.appspot.com/o/sponsors%2Fautomatenspiele.png?alt=media&token=a722fa3f-9514-4932-a4f7-8b13246dcada',
name: 'bonus ohne einzahlung',
'https://firebasestorage.googleapis.com/v0/b/date-fns-org.appspot.com/o/sponsors%2Fslotzilla.png?alt=media&token=99f2558a-4714-4c57-bdb9-ad0aaf35eca2',
name: 'Slotzilla',
},
]
: []
).concat(
result.data.account.orders.nodes
.filter(isSilver)
.sort(sponsorsSortFn)
.map(sponsorsMapFn)
(Date.now() < +new Date(2024, 2, 10)
? [
{
id: 'automatenspiele',
url:
'https://automatenspielex.com/online-casino-bonus/ohne-einzahlung',
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/date-fns-org.appspot.com/o/sponsors%2Fautomatenspiele.png?alt=media&token=a722fa3f-9514-4932-a4f7-8b13246dcada',
name: 'bonus ohne einzahlung',
},
]
: []
).concat(
result.data.account.orders.nodes
.filter(isSilver)
.sort(sponsorsSortFn)
.map(sponsorsMapFn)
)
),
'id'
),
Expand Down

0 comments on commit f06e237

Please sign in to comment.