Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: attempting to upgrade eslint #664

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

ThisIsMissEm
Copy link
Contributor

No description provided.

body?: Renderer<CellProps<any>>;
header?: Renderer<HeaderProps<any>> | string;
body?: Renderer<CellProps<object>>;
header?: Renderer<HeaderProps<object>> | string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be reverted, and ignoring the no any is needed here.

property: Url | UrlString;
dataType?: DataType;
locale?: string;
multiple?: boolean;
sortable?: boolean;
sortFn?: (a: any, b: any) => number;
sortFn?: (a: unknown, b: unknown) => number;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

} else if (typeof props.loading !== undefined) {
loader = () => props.loading;
} else {
loader = <span>Fetching data...</span>;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is attempting to replace this, but it doesn't work:

let loader: JSX.Element | React.ReactNode | null = (LoadingComponent && (
    <LoadingComponent />
  )) ||
    loading || <span>Fetching data...</span>;

  if (LoadingComponent === null) {
    loader = null;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant