Skip to content

Commit

Permalink
chore: remove unnecessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-yahia committed Aug 15, 2024
1 parent 22483c9 commit 2623729
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React, { Component } from 'react';
import i18n from '@dhis2/d2-i18n';
import { D2Date } from '../../FormFields/DateAndTime/D2Date/D2Date.component';
import { modes, absoluteDirections } from '../../FormFields/DateAndTime/D2Date/d2DatePopup.const';
import { withInternalChangeHandler } from '../../FormFields/withInternalChangeHandler';

type Props = {
Expand Down Expand Up @@ -45,13 +44,8 @@ class FromDateFilterPlain extends Component<Props> {
onKeyPress={this.handleKeyPress}
onBlur={this.handleBlur}
placeholder={i18n.t('From')}
popupMode={modes.ABSOLUTE}
popupAbsoluteDirection={absoluteDirections.UP}
width={150}
calendarWidth={330}
calendarHeight={170}
calendarRowHeight={45}
calendarDisplayOptions={this.displayOptions}
{...passOnProps}
/>
<div className={errorClass}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React, { Component } from 'react';
import i18n from '@dhis2/d2-i18n';
import { D2Date } from '../../FormFields/DateAndTime/D2Date/D2Date.component';
import { anchorPositions, modes, absoluteDirections } from '../../FormFields/DateAndTime/D2Date/d2DatePopup.const';
import { withInternalChangeHandler } from '../../FormFields/withInternalChangeHandler';

type Props = {
Expand Down Expand Up @@ -53,14 +52,8 @@ class ToDateFilterPlain extends Component<Props> {
onBlur={this.handleBlur}
onDateSelectedFromCalendar={this.handleDateSelectedFromCalendar}
placeholder={i18n.t('To')}
popupAnchorPosition={anchorPositions.RIGHT}
popupMode={modes.ABSOLUTE}
popupAbsoluteDirection={absoluteDirections.UP}
width={150}
calendarWidth={330}
calendarHeight={170}
calendarRowHeight={45}
calendarDisplayOptions={this.displayOptions}
{...passOnProps}
/>
<div className={errorClass}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ export class AgeField extends Component<Props> {
onBlur={this.handleCalendarBlur}
placeholder={i18n.t('mm/dd/yyyy')}
width={350}
calendarMaxMoment={moment()}
/>
</div>
<TextField
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 2623729

Please sign in to comment.