From de53df5c1448761ec9776dacf132b3bf87b12497 Mon Sep 17 00:00:00 2001 From: Hemant Date: Tue, 10 Sep 2024 14:40:31 +0530 Subject: [PATCH 1/2] updated notification banner text and og images --- src/app/layout.tsx | 4 ++-- src/components/Navbar.tsx | 21 +++++++++---------- src/components/TncModal.tsx | 40 +++++++++++++++++++++++++++++++++++-- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bcc2dee..f8e6fb2 100755 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -13,7 +13,7 @@ export const metadata: Metadata = { title: 'STRKFarm | Yield aggregator on Starknet', description: 'Find and invest in high yield pools. STRKFarm is the best yield aggregator on Starknet.', - images: ['https://static-assets-8zct.onrender.com/strkfarm/preview.png'], + images: ['https://static-assets-8zct.onrender.com/strkfarm/og-img-png.png'], }, twitter: { creator: '@akiraonstarknet', @@ -21,7 +21,7 @@ export const metadata: Metadata = { description: 'Find and invest in high yield pools. STRKFarm is the best yield aggregator on Starknet.', card: 'player', - images: ['https://static-assets-8zct.onrender.com/strkfarm/preview.png'], + images: ['https://static-assets-8zct.onrender.com/strkfarm/og-img-png.png'], }, }; diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index c5388a6..a438477 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -24,16 +24,15 @@ import CONSTANTS from '@/constants'; import { getERC20Balance } from '@/store/balance.atoms'; import { addressAtom } from '@/store/claims.atoms'; import { referralCodeAtom } from '@/store/referral.store'; -import { useEffect } from 'react'; import { lastWalletAtom } from '@/store/utils.atoms'; import { generateReferralCode, getTokenInfoFromName, MyMenuItemProps, MyMenuListProps, - truncate, shortAddress, standariseAddress, + truncate, } from '@/utils'; import fulllogo from '@public/fulllogo.png'; import { @@ -44,8 +43,9 @@ import { } from '@starknet-react/core'; import axios from 'axios'; import mixpanel from 'mixpanel-browser'; -import { isMobile } from 'react-device-detect'; import { useSearchParams } from 'next/navigation'; +import { useEffect } from 'react'; +import { isMobile } from 'react-device-detect'; interface NavbarProps { hideTg?: boolean; @@ -208,13 +208,14 @@ export default function Navbar(props: NavbarProps) { top="0" >
- - - {''} - Report bugs & share feedback in our Telegram group. - {''} - - + + STRKFarm just got audited by one of the top auditors in the ecosystem. + + {" "}Read more + + + +
void; } const TncModal: React.FC = ({ isOpen, onClose }) => { - const { signTypedDataAsync } = useSignTypedData(exampleData); + const { signTypedDataAsync } = useSignTypedData(signingData); const { address } = useAccount(); const handleSign = async () => { @@ -68,7 +104,7 @@ const TncModal: React.FC = ({ isOpen, onClose }) => { onClose(); await axios.post('/api/tnc/signUser', { address, - message: 'I agree to the terms and conditions', + message: res?.toString(), }); } }; From 00d953f217fa45599d643e0526eedabca1dc6972 Mon Sep 17 00:00:00 2001 From: Hemant Date: Tue, 10 Sep 2024 14:41:37 +0530 Subject: [PATCH 2/2] chore: updated notification banner text and og images --- src/components/Navbar.tsx | 21 ++++++++++++++++----- src/components/TncModal.tsx | 15 ++++++++------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index a438477..a3d8753 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -208,14 +208,25 @@ export default function Navbar(props: NavbarProps) { top="0" >
- - STRKFarm just got audited by one of the top auditors in the ecosystem. - - {" "}Read more + + + STRKFarm just got audited by one of the top auditors in the + ecosystem. + + {' '} + Read more -