1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-28 17:55:15 +02:00
unleash.unleash/frontend/src/component/history/EventHistory/EventHistory.tsx
olav f7266cde10 fix: announce navigation to screen readers (#911)
* refactor: unify page titles

* refactor: update page title on navigation

* refactor: add AnnouncerContext to test contexts

* fix: announce navigation to screen readers
2022-04-27 09:14:44 +02:00

13 lines
297 B
TypeScript

import EventLog from '../EventLog';
import { useEvents } from 'hooks/api/getters/useEvents/useEvents';
export const EventHistory = () => {
const { events } = useEvents();
if (events.length < 0) {
return null;
}
return <EventLog history={events} title="Event log" />;
};