Skip to content

Commit

Permalink
fix(ui): update date field in produce to topic (#2070)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelol authored Feb 13, 2025
1 parent ee80a51 commit bb8b066
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions client/src/components/DatePicker/DatePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ class DatePicker extends Component {

DatePicker.propTypes = {
label: PropTypes.string,
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.instanceOf(Date)
]),
value: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date)]),
onChange: PropTypes.func,
showDateTimeInput: PropTypes.bool,
showTimeInput: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/Topic/TopicCopy/TopicCopy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class TopicCopy extends Form {
'number',
false,
'',
'',
''
)}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/Topic/TopicProduce/TopicProduce.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ class TopicProduce extends Form {
>
<input
className="form-control"
defaultValue={
value={
datetime !== '' &&
' ' +
formatDateTime(
Expand Down

0 comments on commit bb8b066

Please sign in to comment.