+
{props.title}
+
{props.summary}
+
-
-
{title}
-
{summary}
-
+
+
-
-
-
-
-
-
+
+
+
{disLikesCount}
+
+
+
+
+
{totalZappedAmount}
-
- )
- }
-)
+
+
+ )
+})
diff --git a/src/pages/game.tsx b/src/pages/game.tsx
index 3ab9d14..bbeaef5 100644
--- a/src/pages/game.tsx
+++ b/src/pages/game.tsx
@@ -4,7 +4,7 @@ import { PaginationWithPageNumbers } from 'components/Pagination'
import { MAX_MODS_PER_PAGE, T_TAG_VALUE } from 'constants.ts'
import { RelayController } from 'controllers'
import { useAppSelector, useMuteLists } from 'hooks'
-import { Filter, kinds, nip19 } from 'nostr-tools'
+import { Filter, kinds } from 'nostr-tools'
import { Subscription } from 'nostr-tools/abstract-relay'
import React, {
Dispatch,
@@ -16,7 +16,6 @@ import React, {
} from 'react'
import { useParams } from 'react-router-dom'
import { toast } from 'react-toastify'
-import { getModPageRoute } from 'routes'
import { ModDetails } from 'types'
import { extractModData, isModDataComplete, log, LogType } from 'utils'
@@ -179,26 +178,9 @@ export const GamePage = () => {
/>
- {currentMods.map((mod) => {
- const route = getModPageRoute(
- nip19.naddrEncode({
- identifier: mod.aTag,
- pubkey: mod.author,
- kind: kinds.ClassifiedListing
- })
- )
-
- return (
-
- )
- })}
+ {currentMods.map((mod) => (
+
+ ))}
{
if (!mod) return
- const route = getModPageRoute(naddr)
-
- return (
-
- )
+ return
}
const DisplayLatestMods = () => {
@@ -291,24 +281,7 @@ const DisplayLatestMods = () => {
) : (
latestMods.map((mod) => {
- const route = getModPageRoute(
- nip19.naddrEncode({
- identifier: mod.aTag,
- pubkey: mod.author,
- kind: kinds.ClassifiedListing
- })
- )
-
- return (
-
- )
+ return
})
)}
diff --git a/src/pages/mods.tsx b/src/pages/mods.tsx
index 8503802..3b24b56 100644
--- a/src/pages/mods.tsx
+++ b/src/pages/mods.tsx
@@ -1,5 +1,4 @@
import { Pagination } from 'components/Pagination'
-import { kinds, nip19 } from 'nostr-tools'
import React, {
Dispatch,
SetStateAction,
@@ -15,7 +14,7 @@ import { ModCard } from '../components/ModCard'
import { MOD_FILTER_LIMIT } from '../constants'
import { MetadataController } from '../controllers'
import { useAppSelector, useDidMount, useMuteLists } from '../hooks'
-import { appRoutes, getModPageRoute } from '../routes'
+import { appRoutes } from '../routes'
import '../styles/filters.css'
import '../styles/pagination.css'
import '../styles/search.css'
@@ -192,26 +191,9 @@ export const ModsPage = () => {
- {filteredModList.map((mod) => {
- const route = getModPageRoute(
- nip19.naddrEncode({
- identifier: mod.aTag,
- pubkey: mod.author,
- kind: kinds.ClassifiedListing
- })
- )
-
- return (
-
- )
- })}
+ {filteredModList.map((mod) => (
+
+ ))}
diff --git a/src/pages/search.tsx b/src/pages/search.tsx
index 5bace93..f507dd9 100644
--- a/src/pages/search.tsx
+++ b/src/pages/search.tsx
@@ -12,7 +12,7 @@ import {
} from 'constants.ts'
import { RelayController } from 'controllers'
import { useAppSelector, useGames, useMuteLists } from 'hooks'
-import { Filter, kinds, nip19 } from 'nostr-tools'
+import { Filter, kinds } from 'nostr-tools'
import { Subscription } from 'nostr-tools/abstract-relay'
import React, {
Dispatch,
@@ -24,7 +24,6 @@ import React, {
} from 'react'
import { useSearchParams } from 'react-router-dom'
import { toast } from 'react-toastify'
-import { getModPageRoute } from 'routes'
import { ModDetails, MuteLists } from 'types'
import { extractModData, isModDataComplete, log, LogType } from 'utils'
@@ -462,26 +461,9 @@ const ModsResult = ({
{filteredModList
.slice((page - 1) * MAX_MODS_PER_PAGE, page * MAX_MODS_PER_PAGE)
- .map((mod) => {
- const route = getModPageRoute(
- nip19.naddrEncode({
- identifier: mod.aTag,
- pubkey: mod.author,
- kind: kinds.ClassifiedListing
- })
- )
-
- return (
-
- )
- })}
+ .map((mod) => (
+
+ ))}