Skip to content

Commit a3de22d

Browse files
committed
Merge branch 'develop' into feat/add-rss
2 parents 5ec9fe6 + bbac80a commit a3de22d

6 files changed

Lines changed: 16 additions & 12 deletions

File tree

public/base.manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
"version": "1.15.9",
55
"chrome_url_overrides": {
66
"newtab": "index.html"
7+
},
8+
"icons": {
9+
"16": "/logos/logo16.png",
10+
"32": "/logos/logo32.png",
11+
"48": "/logos/logo48.png",
12+
"128": "/logos/logo128.png"
713
}
814
}

src/components/Elements/CardLink/CardLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const CardLink = ({
1414
link,
1515
children,
1616
className = '',
17-
appendRef = true,
17+
appendRef = false,
1818
analyticsAttributes,
1919
}: CardLinkProps) => {
2020
return (

src/components/Elements/ClickableItem/ClickableItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { trackLinkOpen } from 'src/lib/analytics'
21
import React from 'react'
32
import { ref } from 'src/config'
3+
import { trackLinkOpen } from 'src/lib/analytics'
44

55
import { useUserPreferences } from 'src/stores/preferences'
66

@@ -18,7 +18,7 @@ export const ClickableItem = ({
1818
className,
1919
children,
2020
analyticsAttributes,
21-
appendRef = true,
21+
appendRef = false,
2222
}: ClickableItemProps) => {
2323
const { openLinksNewTab } = useUserPreferences()
2424

src/config/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
LobstersCard,
1616
MediumCard,
1717
ProductHuntCard,
18-
RedditCard
18+
RedditCard,
1919
} from 'src/features/cards'
2020
import { SupportedCardType } from 'src/types'
2121

@@ -27,7 +27,7 @@ export const LS_ANALYTICS_ID_KEY = 'hackerTabAnalyticsId'
2727
export const name = 'Hackertab.dev'
2828
export const slogan = '— Stay updated with the new technology and trends'
2929
export const repository = 'https://github.com/medyo/hackertab.dev'
30-
export const ref = 'utm_source=hackertab.dev&utm_medium=post&utm_campaign=home'
30+
export const ref = 'ref=hackertab.dev'
3131
export const contactEmail = 'hello@hackertab.dev'
3232
export const maxCardsPerRow = 4
3333
export const supportLink = 'https://github.com/medyo/hackertab.dev/issues'

src/features/bookmarks/components/BookmarksSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type BookmarkItemProps = {
2121
item: BookmarkedPost
2222
appendRef?: boolean
2323
}
24-
const BookmarkItem = ({ item, appendRef = true }: BookmarkItemProps) => {
24+
const BookmarkItem = ({ item, appendRef = false }: BookmarkItemProps) => {
2525
const { unbookmarkPost } = useBookmarks()
2626
const analyticsAttrs = {
2727
[Attributes.TRIGERED_FROM]: 'bookmarks',

src/features/cards/components/githubCard/GithubCard.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ export function GithubCard({ meta, withAds }: CardPropsType) {
4343

4444
const getData = () => {
4545
return filterUniqueEntries(
46-
results
47-
.reduce((acc: Repository[], curr) => {
48-
if (!curr.data) return acc
49-
return [...acc, ...curr.data]
50-
}, [])
51-
.sort((a, b) => b.stars - a.stars)
46+
results.reduce((acc: Repository[], curr) => {
47+
if (!curr.data) return acc
48+
return [...acc, ...curr.data]
49+
}, [])
5250
)
5351
}
5452

0 commit comments

Comments
 (0)