Skip to content

Commit

Permalink
Merge branch 'main' of github.com:TrustlessComputer/bvm-website
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 12, 2024
2 parents b6d0679 + e6e0e73 commit 393aae6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/modules/Whitelist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const Whitelist = () => {

return (
<Flex className={s.container} id={CONTAINER_ID}>
<p className={s.title}>BVM Allowlist Dashboard</p>
<p className={s.desc}>You’re almost there!<br/>Complete the tasks below to upgrade your multiplier!</p>
<p className={s.title}>Get a bigger multiplier</p>
{/*<p className={s.desc}>Get a bigger multiplier.</p>*/}
<div className={s.tokenSection}>
<Steps />
<LeaderBoard />
Expand Down
16 changes: 7 additions & 9 deletions src/modules/Whitelist/leaderBoard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ import ScrollWrapper from '@/components/ScrollWrapper/ScrollWrapper';
import { ILeaderBoardPoint } from '@/interfaces/leader-board-point';
import { getTopLeaderBoards } from '@/services/leaderboard';
import { formatCurrency, formatName } from '@/utils/format';
import { compareString } from '@/utils/string';
import { Box, Flex, Text } from '@chakra-ui/react';
import orderBy from 'lodash/orderBy';
import uniqBy from 'lodash/uniqBy';
import { Box, Flex, Text, Tooltip } from '@chakra-ui/react';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import styles from './styles.module.scss';
import clsx from 'classnames';
import AppLoading from '@/components/AppLoading';
import { Tooltip } from '@chakra-ui/react';
import { CDN_URL_ICONS } from '@/config';
import { getUrlAvatarTwitter } from '@/utils/twitter';
import cs from 'clsx';
import { useAppSelector } from '@/stores/hooks';
import { commonSelector } from '@/stores/states/common/selector';
// import Countdown from 'react-countdown';
// import dayjs from 'dayjs';
import uniqueBy from '@popperjs/core/lib/utils/uniqueBy';

const valueToClassName: any = {
'10': 'boost_10',
Expand Down Expand Up @@ -59,7 +57,7 @@ const LeaderBoard = () => {
try {

const sortList = (arr: ILeaderBoardPoint[]) => {
return orderBy(arr, item => Number(item.need_active || false), 'desc')
return uniqBy(orderBy(arr, item => Number(item.need_active || false), 'desc'), (item: ILeaderBoardPoint) => item.twitter_id)
}
const { data: response, count } = await getTopLeaderBoards({
...refParams.current,
Expand Down Expand Up @@ -253,7 +251,7 @@ const LeaderBoard = () => {
label={
<Flex direction="column" color="black" opacity={0.7}>
<p>Content Points are calculated based on the performance of your posts on X, including Views, Likes, Reposts, and Quotes.
Note: To be qualified, you must tag: <br/><strong>@bvmnetwork</strong></p>
Note: To be qualified, you must tag: <strong>@bvmnetwork</strong></p>
</Flex>
}
>
Expand Down Expand Up @@ -475,7 +473,7 @@ const LeaderBoard = () => {
</div>
</div>
</div> */}
<Box className={styles.timeLine}>
{/*<Box className={styles.timeLine}>
<Box>
{renderTimeLine({
content: <p>Public sale starting soon</p>
Expand All @@ -487,7 +485,7 @@ const LeaderBoard = () => {
)}
</Box>
</Box>
</Box>*/}
<Box w="100%" bg="rgba(255, 255, 255, 0.30)" height="76dvh" p="8px">
<ScrollWrapper
onFetch={() => {
Expand Down
16 changes: 8 additions & 8 deletions src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Steps = () => {
const shareUrl = getLink('');
let content = '';

content = `I've discover the future of Bitcoin: @bvmnetwork\n\nBVM is the 1st modular blockchain meta protocol. And its public sale is starting soon.\n\nJoin the allowlist today!\n\n#${res?.public_code}\n\n`;
content = `Welcome to the future of Bitcoin with @bvmnetwork\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks\n\n$BVM public sale starting soon\n\n#${res?.public_code}\n\nJoin the allowlist`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand All @@ -52,7 +52,7 @@ const Steps = () => {
const shareUrl = getLink('');
let content = '';

content = `I've discover the future of Bitcoin: @bvmnetwork\n\nBVM is the 1st modular blockchain meta protocol. And its public sale is starting soon.\n\nJoin the allowlist today!\n\n`;
content = `Welcome to the future of Bitcoin with @bvmnetwork.\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks.\n\n$BVM public sale starting soon.\n\nJoin the allowlist:`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand Down Expand Up @@ -125,15 +125,15 @@ const Steps = () => {
return (
[
{
title: 'Share posts on X',
desc: 'Follow @bvmnetwork, share valuable content, and tag @bvmnetwork on X to unlock your starting multiplier.',
actionText: 'Share',
title: 'Get your initial multiplier',
desc: 'Post anything on X and tag @bvmnetwork',
actionText: 'Post',
actionHandle: handleShareTw,
},
{
title: 'The more you post, the more points you earn.',
desc: 'The number of posts is unlimited. All you need to do is create a post on X, tag @bvmnetwork, earn more points with higher post engagement to upgrade your multiplier.',
actionText: 'Share More',
title: 'Level up your multiplier',
desc: 'The more you post, the bigger multiplier you’ll get.',
actionText: 'Post',
actionHandle: handleShareTwMore,
},
// {
Expand Down

0 comments on commit 393aae6

Please sign in to comment.