Skip to content

Commit

Permalink
Meme latest (#558)
Browse files Browse the repository at this point in the history
* update ranking

* Update meme chart

* update meme modal staking

---------

Co-authored-by: lq0-github <[email protected]>
  • Loading branch information
xieqiancaosissi and lq0-github authored Jul 4, 2024
1 parent cec3a72 commit aadaf5e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
19 changes: 10 additions & 9 deletions src/components/meme/MemeVoteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ function MemeVoteModal(props: any) {
setSelectedOtherTab('');
}
}, [selectedTab]);
function openMemeVoteConfirmModal() {
setConfirmIsOpen(true);
}
function closeMemeVoteConfirmModal() {
setConfirmIsOpen(false);
}
// function openMemeVoteConfirmModal() {
// setConfirmIsOpen(true);
// }
// function closeMemeVoteConfirmModal() {
// setConfirmIsOpen(false);
// }
if (!selectedTab) return null;
return (
<Modal
Expand Down Expand Up @@ -337,7 +337,8 @@ function MemeVoteModal(props: any) {
<OprationButton
minWidth="7rem"
disabled={disabled}
onClick={openMemeVoteConfirmModal}
// onClick={openMemeVoteConfirmModal}
onClick={stakeToken}
className={`flex flex-grow items-center justify-center bg-greenLight text-boxBorder mt-6 rounded-xl h-12 text-base gotham_bold focus:outline-none ${
disabled || memeVoteLoading ? 'opacity-40' : ''
}`}
Expand Down Expand Up @@ -374,14 +375,14 @@ function MemeVoteModal(props: any) {
</div>
</div>
</div>
{confirmIsOpen && (
{/* {confirmIsOpen && (
<MemeVoteConfirmModal
isOpen={confirmIsOpen}
onRequestClose={closeMemeVoteConfirmModal}
onMemeVote={stakeToken}
delay_withdraw_sec={delay_withdraw_sec}
/>
)}
)} */}
</Modal>
);
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/meme/Staking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,22 @@ const Staking = () => {
<div className="xsm:bg-memeStakingBgColor xsm:border xsm:border-memeBorderColor xsm:rounded-2xl xsm:pt-8 xsm:pb-8 xsm:px-11">
<div className="lg:hidden mb-3 flex flex-col items-center">
<div className="text-base text-primaryText">Current Round:</div>
<div className="text-lg mb-4">2024/06/06-2024/07/05</div>
<div className="text-base text-primaryText">Next Round:</div>
<div className="text-lg mb-6">2024/07/06-2024/08/05</div>
<div className="text-lg mb-4">2024/07/06-2024/08/05</div>
{/* <div className="text-base text-primaryText">Next Round:</div>
<div className="text-lg mb-6">2024/07/06-2024/08/05</div> */}
</div>
<div className="mb-6" style={{ height: '285px' }}>
<StakingChart chartType="xref" />
</div>
<div className="flex justify-between mb-6 px-16 xsm:hidden">
<div className="text-left ">
<p className="text-sm text-primaryText mb-2">Current Round:</p>
<div className="text-sm ">2024/06/06-2024/07/05</div>
<div className="text-sm ">2024/07/06-2024/08/05</div>
</div>
<div className="text-left">
{/* <div className="text-left">
<p className="text-sm text-primaryText mb-2">Next Round:</p>
<div className="text-sm ">2024/07/06-2024/08/05</div>
</div>
</div> */}
</div>
{!hasGuided &&
(currentPage === 1 || currentPage === 2) &&
Expand Down
2 changes: 1 addition & 1 deletion src/components/meme/StakingChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const StakingChart = ({ chartType }) => {
const meme_winner_tokens = memeDataConfig.meme_winner_tokens;
const displaySeeds = useMemo(() => {
if (emptyObject(seeds)) return {};
return Object.keys(MEME_TOKEN_XREF_MAP).reduce(
return meme_winner_tokens.reduce(
(acc, memeTokenId) => ({
...acc,
...{ [memeTokenId]: seeds[memeTokenId] },
Expand Down
6 changes: 3 additions & 3 deletions src/components/meme/memeConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,13 @@ export function getMemeDataConfig(): any {
meme_winner_tokens: [
'token.lonkingnearbackto2024.near',
'blackdragon.tkn.near',
'nkok.tkn.near',
'usmeme.tg',
'touched.tkn.near',
'token.0xshitzu.near',
],
meme_nonListed_tokens: [
'gear.enleap.near',
'usmeme.tg',
'nkok.tkn.near',
'438e48ed4ce6beecf503d43b9dbd3c30d516e7fd.factory.bridge.near',
'nearnvidia.near',
'bean.tkn.near',
Expand Down Expand Up @@ -448,7 +448,7 @@ export function getMemeDataConfig(): any {
meme_cap_tokens: [
'token.lonkingnearbackto2024.near',
'blackdragon.tkn.near',
'nkok.tkn.near',
'usmeme.tg',
'touched.tkn.near',
'token.0xshitzu.near',
],
Expand Down

0 comments on commit aadaf5e

Please sign in to comment.