Commit Graph

1 Commits

Author SHA1 Message Date
Linus Pahl
9392792c2c Replace usage of CurrentUserStore with useCurrentUser hook and remove no longer needed mocks. (#13285)
* Replace `CurrentUserStore` with `useCurrentUser` in `ConfigurationsPage`.

* Remove no longer needed mocks in tests.

* Removing not needed import.

* Remove usage of `CurrentUserContext` in `EditEventDefinitionPage` and `ViewEventDefinitionPage`.

* Replace usage of `CurrentUserStore` in `InputsPage`.

* Replace usage of `CurrentUserStore` in `StreamEditPage`.

* Replace usage of `CurrentUserStore` in `StreamsPage`.

* Migrating component to TS.

* Fixing linter hints.

* Improving test

* Fixing `StreamEditPage`.

* Using hooks for `StreamEditPage` where possible.

* Create const for default user in tests.
2022-09-01 16:51:46 +02:00