Skip to content

Commit

Permalink
chore: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 31, 2024
1 parent 0eed192 commit 497db3f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/modules/PublicSale/activities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ Good luck and have fun!
}, [isOpenNakaWinners]);

const currentDay = React.useMemo(() => {
const diffDay = new BigNumber(
dayjs.utc(PUBLIC_SALE_START).diff(dayjs.utc(), 'days'),
)
.absoluteValue()
.toNumber();
// const diffDay = new BigNumber(
// dayjs.utc(PUBLIC_SALE_START).diff(dayjs.utc(), 'days'),
// )
// .absoluteValue()
// .toNumber();
const diffDay = 0;
return {
step: DAYS.length > diffDay ? DAYS[diffDay] : DAYS[DAYS.length - 1],
diffDay,
Expand Down Expand Up @@ -218,7 +219,7 @@ Good luck and have fun!

return (
<AccordionItem
isDisabled={index > currentDay.diffDay}
isDisabled={isDisable}
className={styles.itemWrapper}
>
{({ isExpanded }) => (
Expand Down

0 comments on commit 497db3f

Please sign in to comment.