Skip to content

[EuiRefreshInterval] Migrate from class to function component #9499

@weronikaolejniczak

Description

@weronikaolejniczak

EuiRefreshInterval provides controls for setting auto-refresh interval (value + time unit) within the date picker.

  • File: components/date_picker/auto_refresh/refresh_interval.tsx
  • Class size: 214 lines
  • State: value, units, min
  • Lifecycle: None

Migration notes:

No lifecycle methods. State is straightforward. Time unit conversion logic is the main complexity.

Acceptance criteria:

  • Convert to function component with useState
  • Maintain time unit conversion and validation
  • All existing tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions