prometheus/web/ui/react-app/src
Łukasz Mierzwa e4f076f813
[UI] Fix small issues generating console errors (#8622)
* Checkbox should use onChange, not onClick

This fixes react console errors:

You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

* Correctly pass key in metrics exporer

Instead of passing metric variable we pass 'metric' string, which causes console errors due to duplicated keys.

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>

* Update tests

Signed-off-by: Łukasz Mierzwa <l.mierzwa@gmail.com>
2021-03-19 13:20:04 +01:00
..
components Unify react fetcher components (#6629) 2020-02-03 15:14:25 +01:00
constants Make React UI the default, keep old UI under /classic (#8142) 2020-11-03 14:51:48 +01:00
contexts react updates for pathPrefix (#7979) 2020-10-22 17:22:32 +02:00
hooks Unify react fetcher components (#6629) 2020-02-03 15:14:25 +01:00
pages [UI] Fix small issues generating console errors (#8622) 2021-03-19 13:20:04 +01:00
types react updates for pathPrefix (#7979) 2020-10-22 17:22:32 +02:00
utils Fix inconsistent display of word 'ago' on rules page (#8566) 2021-03-08 19:10:09 +01:00
vendor/flot Fix react UI bug with series going on and off (#7804) 2020-08-22 21:03:19 +02:00
App.css Web: Scroll hash-fragment links with navbar height (#7456) 2020-06-27 09:12:11 +02:00
App.test.tsx react updates for pathPrefix (#7979) 2020-10-22 17:22:32 +02:00
App.tsx react updates for pathPrefix (#7979) 2020-10-22 17:22:32 +02:00
globals.ts Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
index.tsx react updates for pathPrefix (#7979) 2020-10-22 17:22:32 +02:00
Navbar.test.tsx React UI: Use null value for determining consoles link display (#6790) 2020-02-09 13:39:44 +01:00
Navbar.tsx Make React UI the default, keep old UI under /classic (#8142) 2020-11-03 14:51:48 +01:00
react-app-env.d.ts Integrate beginning of React UI (#5694) 2019-10-17 14:38:09 +02:00
setupTests.ts Implement the /flags page in react (#6248) 2019-11-02 10:27:36 +01:00