Skip to content

Commit

Permalink
do
Browse files Browse the repository at this point in the history
  • Loading branch information
aeolianeth committed Jan 13, 2025
1 parent 9e07450 commit 0e9d224
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { Trans } from '@lingui/macro'
import { Form } from 'antd'
import { AdvancedDropdown } from 'components/Project/ProjectSettings/AdvancedDropdown'
import TooltipLabel from 'components/TooltipLabel'
import { JuiceDatePicker } from 'components/inputs/JuiceDatePicker'
import { JuiceSwitch } from 'components/inputs/JuiceSwitch'
import {
CONTROLLER_CONFIG_EXPLANATION,
CONTROLLER_MIGRATION_EXPLANATION,
TERMINAL_CONFIG_EXPLANATION,
TERMINAL_MIGRATION_EXPLANATION,
} from 'components/strings'
import moment from 'moment'

export function DetailsSectionAdvanced() {
return (
Expand Down Expand Up @@ -64,9 +66,8 @@ export function DetailsSectionAdvanced() {
</span>
}
>
<Form.Item name="mustStartAtOrAfter" noStyle>
<input></input>
{/* <JuiceDatePicker
<Form.Item valuePropName={'date'} name="mustStartAtOrAfter" noStyle>
<JuiceDatePicker
showNow={false}
showToday={false}
format="YYYY-MM-DD HH:mm:ss"
Expand All @@ -77,8 +78,8 @@ export function DetailsSectionAdvanced() {
return false
return true
}}
// showTime={{ defaultValue: moment('00:00:00') }}
/> */}
showTime={{ defaultValue: moment('00:00:00') }}
/>
</Form.Item>
</Form.Item>
</AdvancedDropdown>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BigNumber } from '@ethersproject/bignumber'
import { ETH_TOKEN_ADDRESS } from 'constants/juiceboxTokens'
import moment from 'moment'
import { V2V3ProjectContractsContext } from 'packages/v2v3/contexts/ProjectContracts/V2V3ProjectContractsContext'
import {
V2V3FundAccessConstraint,
Expand Down Expand Up @@ -122,7 +123,9 @@ export const usePrepareSaveEditCycleData = () => {
editingFundingCycleData,
editingFundAccessConstraints,
editingNftRewards,
editingMustStartAtOrAfter: formValues.mustStartAtOrAfter ?? DEFAULT_MUST_START_AT_OR_AFTER,
editingMustStartAtOrAfter: formValues.mustStartAtOrAfter
? moment(formValues.mustStartAtOrAfter).unix().toString()
: DEFAULT_MUST_START_AT_OR_AFTER,
}

return {
Expand Down

0 comments on commit 0e9d224

Please sign in to comment.