diff --git a/packages/fakeyou.com/src/components/common/Card/AudioCard/AudioCard.tsx b/packages/fakeyou.com/src/components/common/Card/AudioCard/AudioCard.tsx index 77cf9dbc46..75d749c113 100644 --- a/packages/fakeyou.com/src/components/common/Card/AudioCard/AudioCard.tsx +++ b/packages/fakeyou.com/src/components/common/Card/AudioCard/AudioCard.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Link, useHistory } from "react-router-dom"; +// import { Link, useHistory } from "react-router-dom"; import Card from "../Card"; import AudioPlayer from "components/common/AudioPlayer"; import useTimeAgo from "hooks/useTimeAgo"; @@ -12,8 +12,7 @@ import Button from "components/common/Button"; import useWeightTypeInfo from "hooks/useWeightTypeInfo/useWeightTypeInfo"; import WeightCoverImage from "components/common/WeightCoverImage"; import { BucketConfig } from "@storyteller/components/src/api/BucketConfig"; -// import useToken from "hooks/useToken"; -import getCardUrl from "../getCardUrl"; +// import getCardUrl from "../getCardUrl"; interface AudioCardProps { bookmarks?: any; @@ -25,7 +24,7 @@ interface AudioCardProps { type: "media" | "weights"; inSelectModal?: boolean; onResultSelect?: (data:{token: string, title:string}) => void; - onClick?: (e:any) => any; + // onClick?: (e:any) => any; } export default function AudioCard({ @@ -37,12 +36,12 @@ export default function AudioCard({ source = "", type, inSelectModal = false, - onClick: inClick, + // onClick: inClick, onResultSelect, }: AudioCardProps) { // const { setToken, setWeightTitle } = useToken(); - const linkUrl = getCardUrl(data,source,type); - const history = useHistory(); + // const linkUrl = getCardUrl(data,source,type); + // const history = useHistory(); const handleInnerClick = (event: any) => { event.stopPropagation(); @@ -168,27 +167,27 @@ export default function AudioCard({