diff --git a/src/assets/NFT-black.png b/src/assets/NFT-black.png index 9301749..ec55f8b 100644 Binary files a/src/assets/NFT-black.png and b/src/assets/NFT-black.png differ diff --git a/src/assets/NFT.jpg b/src/assets/NFT.jpg new file mode 100644 index 0000000..7713234 Binary files /dev/null and b/src/assets/NFT.jpg differ diff --git a/src/assets/NFT.png b/src/assets/NFT.png deleted file mode 100644 index 83721ea..0000000 Binary files a/src/assets/NFT.png and /dev/null differ diff --git a/src/assets/contract.png b/src/assets/contract.png index 79ae7b4..8a585f5 100644 Binary files a/src/assets/contract.png and b/src/assets/contract.png differ diff --git a/src/assets/fil.png b/src/assets/fil.png index 8716036..9324045 100644 Binary files a/src/assets/fil.png and b/src/assets/fil.png differ diff --git a/src/assets/pledge.png b/src/assets/pledge.png index 4ce55a6..ac5686a 100644 Binary files a/src/assets/pledge.png and b/src/assets/pledge.png differ diff --git a/src/assets/recommend.png b/src/assets/recommend.png index d07a0c6..b79ce44 100644 Binary files a/src/assets/recommend.png and b/src/assets/recommend.png differ diff --git a/src/components/ConnectWalletButton.tsx b/src/components/ConnectWalletButton.tsx index 1f26c6a..ead28f5 100644 --- a/src/components/ConnectWalletButton.tsx +++ b/src/components/ConnectWalletButton.tsx @@ -22,9 +22,9 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => { const [visible, setVisible] = useState(false) const { copyVal } = useCopyLink() - const [contractCount,setContractCount] = useState(0) + const [contractCount, setContractCount] = useState(0) - const {t} = useTranslation() + const { t } = useTranslation() const connectWallet = async () => { setLoading(true); @@ -49,9 +49,9 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => { setContractCount(_record.length) } - useEffect(()=>{ + useEffect(() => { walletAddress && visible && getData() - },[walletAddress,visible]) + }, [walletAddress, visible]) return (
@@ -87,7 +87,7 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
-
+
Filecoin(FIL)
{t('Balance')}:{filBalance}FIL
@@ -96,7 +96,7 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
-
+
{t('SOFIL Staking Contract')}
{t('Staking Amount')}:{contractCount}
@@ -104,12 +104,12 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
toPath('/myPledge')}> -
{t('My Staking')}
+
{t('My Staking')}
toPath('/invitation')}> -
{t('My Referral')}
+
{t('My Referral')}
{t('Log out')}
diff --git a/src/pages/invitation-detail/index.tsx b/src/pages/invitation-detail/index.tsx index 055915f..f90ddff 100644 --- a/src/pages/invitation-detail/index.tsx +++ b/src/pages/invitation-detail/index.tsx @@ -85,7 +85,7 @@ const InvitationDetail = () => {
- +
{t('NFT Details')}
diff --git a/src/pages/invitation/index.tsx b/src/pages/invitation/index.tsx index 74f9ec9..17ada86 100644 --- a/src/pages/invitation/index.tsx +++ b/src/pages/invitation/index.tsx @@ -281,7 +281,7 @@ const ContractRecord = (props: ContractRecordProps) => { }}>
- +
# {item.tokenId}
{item.pledgeDay} {t('Days')}
diff --git a/src/pages/my-pledge/index.tsx b/src/pages/my-pledge/index.tsx index 981d19a..9266a13 100644 --- a/src/pages/my-pledge/index.tsx +++ b/src/pages/my-pledge/index.tsx @@ -249,7 +249,7 @@ const PledgeContract = (props: PledgeContractProps) => { }}>
- +
# {item.tokenId}
{item.pledgeDay} {t('Days')}
diff --git a/src/pages/nft-detail/index.tsx b/src/pages/nft-detail/index.tsx index 773e889..ffd71c1 100644 --- a/src/pages/nft-detail/index.tsx +++ b/src/pages/nft-detail/index.tsx @@ -135,7 +135,7 @@ const NFTDetail = () => { data.isBlack ? ( ) : ( - + ) }
diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 0c29184..f176a11 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss @@ -151,6 +151,7 @@ .box { height: 50px; } + .box-1 { height: 40px; } @@ -163,6 +164,7 @@ opacity: 1; background: #313131; box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.1608); + &:active { opacity: 0.8; } @@ -174,7 +176,8 @@ .text-divider { border-bottom: 1px solid $white; - &:active{ + + &:active { opacity: 0.8; } } @@ -204,9 +207,9 @@ .rv-popup { .header-fil { - width: 40px; - height: 40px; - object-fit: cover; + width: 50px; + height: 50px; + object-fit: contain; } .header-divider { @@ -216,20 +219,18 @@ } .header-pledge-img { - width: 50px; - height: 50px; + width: 40px; + height: 40px; object-fit: cover; } .header-recommend-img { - width: 30px; - height: 30px; + width: 40px; + height: 40px; object-fit: cover; - margin-left: 15px; - margin-right: 10px; } .header-logout { color: #4ee1f9; } -} +} \ No newline at end of file diff --git a/src/utils/share.ts b/src/utils/share.ts index 3ce6e7a..be0e98c 100644 --- a/src/utils/share.ts +++ b/src/utils/share.ts @@ -25,39 +25,11 @@ export const shareLK = async (language: LanguageType, address: string) => { const shareText = (language: LanguageType, address: string) => { const ts = { - 'en': ` - Join me to stake $FIL on SOFIL with my referral code to earn up to 16.23% APY ! - SOFIL is a DeFi platform offering stake-to-earn opportunities to crypto holders. - - My referral code: ${address} - You can insert my referral code before you stake. - - Come and explore more with me on SOFIL by scanning the following QR code or directly visit app.sofil.io on your MetaMask - - SOFIL Official Website: https://sofil.io - `, + 'en': `Stake $FIL on SOFIL with my referral code to earn up to 16.23% APY!\n \nMy referral code: ${address} \n \nInsert my code before you stake!\n \nScan the following QR code or directly visit https://app.sofil.io on your MetaMask`, - 'hk': - ` - 使用我的推薦碼在 SOFIL 上質押 $FIL,即可賺取高達 16.23% 年利率!\n - SOFIL 是一個去中心金融平台,為加密貨幣持有者提供質押賺取的機會。\n - 我的推薦碼:${address} \n - 您可以在質押前輸入我的推薦碼。\n - 掃描以下二維碼或直接在 MetaMask 上瀏覽 app.sofil.io,與我一起探索 SOFIL 的更多內容!\n - SOFIL官方網站:https://sofil.io - `, + 'hk': `使用我的推薦碼在 SOFIL 上質押 $FIL,即可賺取高達 16.23% 年利率!\n \n我的推薦碼:${address} \n \n您可以在質押前輸入我的推薦碼。\n \n掃描以下二維碼或直接在 MetaMask 上瀏覽 app.sofil.io,與我一起探索 SOFIL 的更多內容!`, - 'zh': ` - 使用我的推荐码在 SOFIL 上质押 $FIL,即可赚取高达 16.23% 年利率! - SOFIL 是一个去中心金融平台,为加密货币持有者提供质押赚取的机会。 - - 我的推荐码:${address} - 您可以在质押前输入我的推荐码。 - - 扫描以下二维码或直接在 MetaMask 上浏览 app.sofil.io,与我一起探索 SOFIL 的更多内容! - - SOFIL官方网站:https://sofil.io - ` + 'zh': `使用我的推荐码在 SOFIL 上质押 $FIL,即可赚取高达 16.23% 年利率!\n \n我的推荐码:${address} \n \n您可以在质押前输入我的推荐码。\n \n扫描以下二维码或直接在 MetaMask 上浏览 app.sofil.io,与我一起探索 SOFIL 的更多内容!` } as { [key: string]: string } return ts[language] }