Skip to content

Commit

Permalink
Updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyDiego committed Sep 16, 2023
1 parent 44984b3 commit f26f754
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/Date/DatePickerInput.shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export type DatePickerInputProps = {
hasError?: boolean
onValidationError?: ((error: string | null) => void) | undefined
calendarIcon?: string
iconSize?: number
iconStyle?: React.CSSProperties
iconColor?: string
saveLabel?: string
saveLabelDisabled?: boolean
uppercase?: boolean
Expand Down
6 changes: 5 additions & 1 deletion src/Date/DatePickerInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import DatePickerModal from './DatePickerModal'
import { useLatest } from '../utils'
import type { DatePickerInputProps } from './DatePickerInput.shared'
import DatePickerInputWithoutModal from './DatePickerInputWithoutModal'
import { StyleProp } from 'react-native'
import { ViewStyle } from 'react-native'

function DatePickerInput(
{
Expand Down Expand Up @@ -34,10 +36,12 @@ function DatePickerInput(
inputButton={
withModal ? (
<TextInput.Icon
size={24}
size={rest.iconSize ?? 24}
icon={calendarIcon}
color={rest.iconColor ?? undefined}
disabled={rest.disabled}
onPress={() => setVisible(true)}
style={rest.iconStyle as StyleProp<ViewStyle>}
/>
) : null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4044,6 +4044,10 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
{
"margin": 0,
},
{
"paddingLeft": 16,
"paddingRight": 16,
},
{
"height": 56,
},
Expand All @@ -4058,8 +4062,6 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
"fontWeight": undefined,
"letterSpacing": 0.15,
"lineHeight": undefined,
"paddingLeft": 16,
"paddingRight": 16,
"textAlign": "left",
"textAlignVertical": "center",
},
Expand Down
6 changes: 4 additions & 2 deletions src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ exports[`renders CalendarEdit 1`] = `
{
"margin": 0,
},
{
"paddingLeft": 16,
"paddingRight": 16,
},
{
"height": 56,
},
Expand All @@ -210,8 +214,6 @@ exports[`renders CalendarEdit 1`] = `
"fontWeight": undefined,
"letterSpacing": 0.15,
"lineHeight": undefined,
"paddingLeft": 16,
"paddingRight": 16,
"textAlign": "left",
"textAlignVertical": "center",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ exports[`renders DatePickerInput 1`] = `
{
"margin": 0,
},
{
"paddingLeft": 16,
"paddingRight": 16,
},
{
"height": 56,
},
Expand All @@ -202,8 +206,6 @@ exports[`renders DatePickerInput 1`] = `
"fontWeight": undefined,
"letterSpacing": 0.15,
"lineHeight": undefined,
"paddingLeft": 16,
"paddingRight": 16,
"textAlign": "left",
"textAlignVertical": "center",
},
Expand Down

0 comments on commit f26f754

Please sign in to comment.