change date/time modal from using constant to config for dateFormat
This commit is contained in:
parent
74c5c6e4e9
commit
f4c10e372d
|
@ -1,3 +1,4 @@
|
|||
import config from '../../config.ts';
|
||||
import { ActionRow, MessageComponentTypes, TextStyles } from '../../deps.ts';
|
||||
import { LFGMember } from '../types/commandTypes.ts';
|
||||
import { isDSTActive } from './event-creation/dateTimeUtils.ts';
|
||||
|
@ -84,7 +85,7 @@ export const dateTimeFields = (prefillTime = '', prefillTimeZone = '', prefillDa
|
|||
type: MessageComponentTypes.InputText,
|
||||
customId: eventDateId,
|
||||
label: 'Start Date:',
|
||||
placeholder: 'Enter date as "MONTH/DAY/YEAR" or "Month Day, Year"',
|
||||
placeholder: `Enter date as "${config.defaultDateFormat}" or "Month Day, Year"`,
|
||||
style: TextStyles.Short,
|
||||
minLength: 1,
|
||||
maxLength: 20,
|
||||
|
|
Loading…
Reference in New Issue