Skip to content

Commit

Permalink
temp changes for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Jan 15, 2021
1 parent cf74ea3 commit 7362ee2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
9 changes: 8 additions & 1 deletion src/app/containers/SalesPage/hooks/useSaleEndTime.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
import { useEffect, useState } from 'react';
import moment from 'moment';
import { useCacheCallWithValue } from '../../../hooks/useCacheCallWithValue';
import { currentNetwork } from '../../../../utils/classifiers';

// 12.30 GTM, 15th Jan
const DATE_FORMAT = 'HH:mm [GMT], Do MMM';

export function useSaleEndTime() {
const [endDate, setEndDate] = useState(
moment('2021-01-15 15:30+0').utc(false).toDate(),
moment(
currentNetwork === 'testnet'
? '2021-01-15 15:30+0'
: '2021-01-21 15:30+0',
)
.utc(false)
.toDate(),
);
const [endDateString, setEndDateString] = useState(
moment(endDate).format(DATE_FORMAT),
Expand Down
26 changes: 15 additions & 11 deletions src/app/containers/SalesPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,24 @@ export function SalesPage() {
</div>
)}

{!isConnected ? (
<Screen1 />
) : (
{currentNetwork === 'testnet' && (
<>
{Number(state.maxDeposit) === 0 ? (
<EnterCodeLanding />
{!isConnected ? (
<Screen1 />
) : (
<>
{state.step === 1 && <Screen1 />}
{state.step === 2 && <Screen2 />}
{state.step === 3 && <Screen3 />}
{state.step === 4 && <Screen4 />}
{state.step === 5 && <Screen5 />}
{state.step === 6 && <Screen6 />}
{Number(state.maxDeposit) === 0 ? (
<EnterCodeLanding />
) : (
<>
{state.step === 1 && <Screen1 />}
{state.step === 2 && <Screen2 />}
{state.step === 3 && <Screen3 />}
{state.step === 4 && <Screen4 />}
{state.step === 5 && <Screen5 />}
{state.step === 6 && <Screen6 />}
</>
)}
</>
)}
</>
Expand Down

0 comments on commit 7362ee2

Please sign in to comment.