diff --git a/src/components/ProductInfo.tsx b/src/components/ProductInfo.tsx index ec0517a..74d4a12 100644 --- a/src/components/ProductInfo.tsx +++ b/src/components/ProductInfo.tsx @@ -6,7 +6,7 @@ import { useRouter } from '~/hooks/useRouter' import store from '~/store' import '~/styles/components.scss' import { MarketNFTData } from '~/types/store' -import { getTime, toThousands } from '~/utils' +import { toThousands } from '~/utils' import { copy } from '~/utils/copy' import Modal from './Modal' diff --git a/src/components/ProductItem.tsx b/src/components/ProductItem.tsx index 4b05401..75898ed 100644 --- a/src/components/ProductItem.tsx +++ b/src/components/ProductItem.tsx @@ -1,6 +1,8 @@ +import { observer } from 'mobx-react' +import store from '~/store' import '~/styles/components.scss' import { MarketNFTData } from '~/types/store' -import { toThousands } from '~/utils' +import { toThousands } from '~/utils' interface ProductItemProps { data: MarketNFTData @@ -9,9 +11,15 @@ interface ProductItemProps { const ProductItem = (props: ProductItemProps) => { const { data } = props + const { userInfo } = store.state return (