toShare('cast')}>
@@ -107,7 +116,7 @@ const ProductInfo = (props: ProductInfoProps) => {
showConfirmButton
backgroundColosed
>
-
+
已複製鏈接
diff --git a/src/components/ProductItem.tsx b/src/components/ProductItem.tsx
index 8e8ca94..4b05401 100644
--- a/src/components/ProductItem.tsx
+++ b/src/components/ProductItem.tsx
@@ -17,7 +17,7 @@ const ProductItem = (props: ProductItemProps) => {
{data.name}
-
{data?.symbol} {toThousands(data?.price)}
+
{data?.symbol} {toThousands(data?.price)}
{data.sell_name}
diff --git a/src/pages/detail/AuctionNFT.tsx b/src/pages/detail/AuctionNFT.tsx
index 3b2c52d..7dcbc0a 100644
--- a/src/pages/detail/AuctionNFT.tsx
+++ b/src/pages/detail/AuctionNFT.tsx
@@ -52,14 +52,13 @@ const AuctionNFT = (props: AuctionNFTProps) => {
return (
{
const { push } = useRouter()
const { userInfo, token } = store.state
const [buyVisible, setBuyVisible] = useState(false)
- const [successVisible, setSuccessVisible] = useState(false)
const openBuyModal = () => {
if (!token) return store.setVisibleUnLogin(true)
@@ -54,14 +53,13 @@ const BuyNft = (props: BuyNftProps) => {
return (
{/* Buy Modal */}
{
-
+
diff --git a/src/pages/detail/RemoveMarketMyNFT.tsx b/src/pages/detail/RemoveMarketMyNFT.tsx
index 39cc434..152e30f 100644
--- a/src/pages/detail/RemoveMarketMyNFT.tsx
+++ b/src/pages/detail/RemoveMarketMyNFT.tsx
@@ -33,23 +33,23 @@ const RemoveMarketMyNFT = (props: RemoveMarketMyNFTProps) => {
return (
確定下架
}
- buttonClick={confirm}
+ showConfirmButton
>
- <>>
+
+
+
)
diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx
index 52f6a13..74e9085 100644
--- a/src/pages/home/index.tsx
+++ b/src/pages/home/index.tsx
@@ -54,7 +54,7 @@ const Home = () => {
) : (
即將發售
-
+
store.updateIssueNftIsTime(index)} />
@@ -114,11 +114,11 @@ const Home = () => {
-
diff --git a/src/pages/personal/AccountAssetsCard.tsx b/src/pages/personal/AccountAssetsCard.tsx
index 8d298f7..4644e1d 100644
--- a/src/pages/personal/AccountAssetsCard.tsx
+++ b/src/pages/personal/AccountAssetsCard.tsx
@@ -37,7 +37,7 @@ const AccountAssetsCard = () => {
{item.title}
- {toThousands(item.value)}
+ {toThousands(item.value)}
{item.symbol}
diff --git a/src/pages/share/index.tsx b/src/pages/share/index.tsx
index ce6610f..9fc2141 100644
--- a/src/pages/share/index.tsx
+++ b/src/pages/share/index.tsx
@@ -10,7 +10,7 @@ import { useRouter } from '~/hooks/useRouter'
const Share = () => {
- const { userInfo, token, likeNft, myNft } = store.state
+ const { userInfo, token, likeNft, myNft, shareTabIndex } = store.state
const { push } = useRouter()
const [visible, setVisible] = useState(false)
const inputRef = useRef
(null)
@@ -151,6 +151,10 @@ const Share = () => {
{
+ store.setShareTabIndex(index)
+ }}
lineWidth={100}
background="none"
titleInactiveColor='#000'
diff --git a/src/store/index.ts b/src/store/index.ts
index 6e629d8..33165fc 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -22,6 +22,7 @@ class AppStore implements Store {
sellNft: [] as MarketNFTData[], //售賣NFT
issueNft: [] as MarketNFTData[], //發行搶購NFT
rmdNft: [] as MarketNFTData[], //推薦NFT
+ shareTabIndex: 0,
};
constructor() {
@@ -139,6 +140,10 @@ class AppStore implements Store {
this.state.buyNFTSuccessName = "";
}
}
+
+ setShareTabIndex(index: number) {
+ this.state.shareTabIndex = index;
+ }
}
const store = new AppStore();
diff --git a/src/styles/components.scss b/src/styles/components.scss
index fea5cce..23f66af 100644
--- a/src/styles/components.scss
+++ b/src/styles/components.scss
@@ -30,7 +30,6 @@
overflow: hidden;
.price-tag{
- background: linear-gradient(106deg, #320D6D 2%, #8A4CED 106%);
color: $white;
padding: 0px 15px 0px 5px;
border-radius: 50px;
@@ -85,7 +84,6 @@
}
.price-tag{
- // background: linear-gradient(104deg, #320D6D 3%, #8A4CED 106%);
font-size: 14px;
color: $white;
padding: 8px 20px;
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 4977502..594e378 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -8,8 +8,7 @@ $colors:(
red : $red,
white : $white,
black : $black,
- page:$page,
- like-text:$like
+ page:$page
);
$iterations: 5;