Skip to content

Customer chat: remaining any in the attachment click handler and new tests #1378

Description

@marassteiner

Follow-up from #1297 (not a merge blocker). Style / type-safety only.

Evidence

src/screens/chat.screen.tsx:761 still uses React.MouseEvent<any>. That signature was already on the merge base.

The new src/__tests__/chat.screen.test.tsx adds further any (for example the support-issue fixture around line 19 and untyped component mocks around line 107).

Suggested fix

Type the click handler as React.MouseEvent<HTMLElement> (or React.SyntheticEvent). Give the test fixtures a small local interface instead of any.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions