mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
* refactor: add ref support to PermissionSwitch * refactor: port global settings to TS/hooks * refactor: fix file extension * refactor: format file * refactor: fix inconsistent locationSettings prop * refactor: use correct locationSettings hook * refactor: use objects for settings hooks
28 lines
819 B
TypeScript
28 lines
819 B
TypeScript
import EventLog from './EventLog';
|
|
import { useEventSettings } from "../../../hooks/useEventSettings";
|
|
import { useLocationSettings } from "../../../hooks/useLocationSettings";
|
|
|
|
interface IEventLogContainerProps {
|
|
title: string;
|
|
history: unknown[];
|
|
displayInline?: boolean;
|
|
}
|
|
|
|
const EventLogContainer = (props: IEventLogContainerProps) => {
|
|
const { locationSettings } = useLocationSettings();
|
|
const { eventSettings, setEventSettings } = useEventSettings();
|
|
|
|
return (
|
|
<EventLog
|
|
title={props.title}
|
|
history={props.history}
|
|
eventSettings={eventSettings}
|
|
setEventSettings={setEventSettings}
|
|
locationSettings={locationSettings}
|
|
displayInline={props.displayInline}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default EventLogContainer;
|