mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-06-04 00:43:49 -04:00
change date/time modal from using constant to config for dateFormat
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import config from '../../config.ts';
|
||||||
import { ActionRow, MessageComponentTypes, TextStyles } from '../../deps.ts';
|
import { ActionRow, MessageComponentTypes, TextStyles } from '../../deps.ts';
|
||||||
import { LFGMember } from '../types/commandTypes.ts';
|
import { LFGMember } from '../types/commandTypes.ts';
|
||||||
import { isDSTActive } from './event-creation/dateTimeUtils.ts';
|
import { isDSTActive } from './event-creation/dateTimeUtils.ts';
|
||||||
@@ -84,7 +85,7 @@ export const dateTimeFields = (prefillTime = '', prefillTimeZone = '', prefillDa
|
|||||||
type: MessageComponentTypes.InputText,
|
type: MessageComponentTypes.InputText,
|
||||||
customId: eventDateId,
|
customId: eventDateId,
|
||||||
label: 'Start Date:',
|
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,
|
style: TextStyles.Short,
|
||||||
minLength: 1,
|
minLength: 1,
|
||||||
maxLength: 20,
|
maxLength: 20,
|
||||||
|
|||||||
Reference in New Issue
Block a user