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

Table props is deprecated & types problem #1861

Open
rLukoyanov opened this issue Sep 16, 2024 · 1 comment
Open

Table props is deprecated & types problem #1861

rLukoyanov opened this issue Sep 16, 2024 · 1 comment

Comments

@rLukoyanov
Copy link
Contributor

rLukoyanov commented Sep 16, 2024

Screenshot 2024-09-17 at 01 01 16

Screenshot 2024-09-17 at 01 07 15

Пропс renderControls пишет, что устарел. Однако, в документации об этом нет и слова.
HOC для renderControls - withTableSettings

Так же при работе с таблицей и пропсом getRowActions приходится писать

const getRowActions = () => {
      return [{
        text: 'Удалить',
        handler: () => {
          setOpenDeleteModal(true);
        },
        icon: <TrashBin />,
        // в документации описан тип, но выдает ошибку type string !== 'danger' | 'normal' ...
        theme: 'danger' as 'danger',
      }];
  };

Иначе выходит ошибка -
Screenshot 2024-09-17 at 01 05 25

@TuxGit
Copy link

TuxGit commented Sep 16, 2024

renderControls #1761 reference question

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

No branches or pull requests

2 participants