Skip to content

Commit

Permalink
Merge pull request #194 from TrustlessComputer/daily_reward
Browse files Browse the repository at this point in the history
Daily reward
  • Loading branch information
0xmegalodon authored Feb 1, 2024
2 parents f15e404 + 9b4ffeb commit f4c6742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/modules/PublicSale/aboveTheFold/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import LeaderBoardVisual from '@/modules/PublicSale/leaderBoardVisual';
import Activities from '@/modules/PublicSale/activities';
import useWindowSize from '@/hooks/useWindowSize';
import DailyReward from '@/modules/PublicSale/dailyReward';
import HourlyReward from '@/modules/PublicSale/hourlyReward';

const AboveTheFold = () => {
const { setPlay } = useAnimationStore();
Expand Down Expand Up @@ -53,7 +52,7 @@ const AboveTheFold = () => {
<LeaderBoardVisual />
{/*<AddMoreContribution />*/}
<DailyReward />
<HourlyReward />
{/*<HourlyReward />*/}
{/*<LeaderBoardSwitch classNames={s.boardSwitch} />*/}
{mobileScreen && <Activities />}
</Flex>
Expand Down
9 changes: 7 additions & 2 deletions src/modules/PublicSale/hourlyRewardButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
import cx from 'clsx';
import dayjs from 'dayjs';
import Countdown from '@/modules/Whitelist/stepAirdrop/Countdown';
import { getPublicSaleSummary, IPublicSaleDailyReward, requestRewardDailyShareCode } from '@/services/public-sale';
import {
getPublicSaleDailyReward,
getPublicSaleSummary,
IPublicSaleDailyReward,
requestRewardDailyShareCode,
} from '@/services/public-sale';
import { useAppSelector } from '@/stores/hooks';
import { commonSelector } from '@/stores/states/common/selector';
import { formatCurrency } from '@/utils/format';
Expand Down Expand Up @@ -98,7 +103,7 @@ const HourlyRewardButton = ({ className }: any) => {

const getProgramInfo = async () => {
try {
const res = null;//await getPublicSaleDailyReward();
const res = await getPublicSaleDailyReward();
setDailyReward(res);
dispatch(setPublicSaleDailyReward(res));
} catch (e) {
Expand Down

0 comments on commit f4c6742

Please sign in to comment.