Skip to content

Commit

Permalink
Add a sponsor link
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Nov 17, 2023
1 parent 435fe9e commit 0aadc4f
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/utils/useSponsors/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function useSponsors(): RequestHookResult<Sponsors> {
.map(sponsorsMapFn),
'id'
).filter((s) => s.name !== 'date-fns'),

silver: uniqBy(
([
Date.now() < +new Date(2023, 11, 1) && {
Expand Down Expand Up @@ -71,13 +72,25 @@ export function useSponsors(): RequestHookResult<Sponsors> {
),
'id'
),

bronze: uniqBy(
result.data.account.orders.nodes
.filter(isBronze)
.sort(sponsorsSortFn)
.map(sponsorsMapFn),
([
Date.now() < +new Date(2024, 10, 17) && {
id: 'utlandskacasino',
url: 'https://xn--utlndskacasino-7hb.se/',
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/date-fns-org.appspot.com/o/sponsors%2Futlandskacasino.png?alt=media&token=72c59dc1-cfcc-4f0e-b788-40e0f5686b04',
name: 'Utländska Casino',
},
].filter((s) => !!s) as Sponsor[]).concat(
result.data.account.orders.nodes
.filter(isBronze)
.sort(sponsorsSortFn)
.map(sponsorsMapFn)
),
'id'
),

backers: uniqBy(
result.data.account.orders.nodes
.filter(isBacker)
Expand Down

0 comments on commit 0aadc4f

Please sign in to comment.