Skip to content

Commit ef8a089

Browse files
committed
Respect disabling the format in label
1 parent 8573989 commit ef8a089

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

src/Date/CalendarEdit.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function CalendarEdit({
2424
validRange,
2525
locale,
2626
inputEnabled,
27+
withDateFormatInLabel,
2728
}: {
2829
mode: ModeType
2930
label?: string
@@ -35,6 +36,7 @@ function CalendarEdit({
3536
validRange: ValidRangeType | undefined
3637
locale: string
3738
inputEnabled?: boolean
39+
withDateFormatInLabel?: boolean
3840
}) {
3941
const dateInput = useRef<TextInputNative | null>(null)
4042
const startInput = useRef<TextInputNative | null>(null)
@@ -93,6 +95,7 @@ function CalendarEdit({
9395
withModal={false}
9496
autoComplete={'off'}
9597
inputEnabled={inputEnabled}
98+
withDateFormatInLabel={withDateFormatInLabel}
9699
/>
97100
) : null}
98101
{mode === 'range' ? (
@@ -110,6 +113,7 @@ function CalendarEdit({
110113
withModal={false}
111114
autoComplete={'off'}
112115
inputEnabled={inputEnabled}
116+
withDateFormatInLabel={withDateFormatInLabel}
113117
/>
114118
<View style={styles.separator} />
115119
<DatePickerInputWithoutModal
@@ -124,6 +128,7 @@ function CalendarEdit({
124128
withModal={false}
125129
autoComplete="off"
126130
inputEnabled={inputEnabled}
131+
withDateFormatInLabel={withDateFormatInLabel}
127132
/>
128133
</View>
129134
) : null}

src/Date/DatePickerInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ function DatePickerInput(
8787
presentationStyle={presentationStyle}
8888
label={rest.label as any}
8989
startWeekOnMonday={startWeekOnMonday}
90+
withDateFormatInLabel={rest.withDateFormatInLabel}
9091
/>
9192
) : null
9293
}

src/Date/DatePickerModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export function DatePickerModal(
101101
disableSafeTop={disableStatusBarPadding}
102102
disableStatusBar={disableStatusBar}
103103
statusBarOnTopOfBackdrop={isPageSheet || statusBarOnTopOfBackdrop}
104+
withDateFormatInLabel={props.withDateFormatInLabel}
104105
/>
105106
</View>
106107
</View>

src/Date/DatePickerModalContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export function DatePickerModalContent(
212212
validRange={validRange}
213213
locale={locale}
214214
inputEnabled={props.inputEnabled}
215+
withDateFormatInLabel={props.withDateFormatInLabel}
215216
/>
216217
}
217218
/>

src/Date/DatePickerModalContentHeader.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface HeaderPickProps {
1212
moreLabel?: string
1313
label?: string
1414
emptyLabel?: string
15+
withDateFormatInLabel?: boolean
1516
saveLabel?: string
1617
uppercase?: boolean
1718
headerSeparator?: string

0 commit comments

Comments
 (0)