Skip to content

Commit

Permalink
set datetime width
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Sep 29, 2023
1 parent 2a13934 commit d3859ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sn-controls-react/src/fieldcontrols/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const DatePicker: React.FC<ReactClientFieldSetting<DateTimeFieldSetting>>
required={settings.Compulsory}
fullWidth={true}
format="yyyy MMMM dd"
style={{ width: 220 }}
/>
) : (
<DateTimePicker
Expand All @@ -113,6 +114,7 @@ export const DatePicker: React.FC<ReactClientFieldSetting<DateTimeFieldSetting>>
required={settings.Compulsory}
fullWidth={true}
format="yyyy MMMM dd hh:mm aaaa"
style={{ width: 220 }}
/>
)}
{!hideDescription && <FormHelperText>{settings.Description}</FormHelperText>}
Expand Down

0 comments on commit d3859ef

Please sign in to comment.