Skip to content

Commit

Permalink
Simplifying code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Dec 23, 2024
1 parent b3a557e commit 84baace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Routes from 'routing/Routes';
import type { ColumnRenderers } from 'components/common/EntityDataTable';
import FilterValueRenderers from 'components/streams/StreamsOverview/FilterValueRenderers';
import { keyFn, fetchEventDefinitions } from 'components/event-definitions/hooks/useEventDefinitions';
import useTableComponents from 'components/event-definitions/event-definitions/useTableComponents';
import BulkActions from 'components/event-definitions/event-definitions/BulkActions';

import EventDefinitionActions from './EventDefinitionActions';
import SchedulingCell from './SchedulingCell';
Expand Down Expand Up @@ -65,15 +65,18 @@ const customColumnRenderers = (): ColumnRenderers<EventDefinition> => ({
},
});

const bulkSelection = {
actions: <BulkActions />,

};

const EventDefinitionsContainer = () => {
const columnRenderers = customColumnRenderers();

const renderEventDefinitionActions = useCallback((listItem: EventDefinition) => (
<EventDefinitionActions eventDefinition={listItem} />
), []);

const { bulkSelection } = useTableComponents();

return (
<PaginatedEntityTable<EventDefinition> humanName="event definitions"
columnsOrder={COLUMNS_ORDER}
Expand Down

This file was deleted.

0 comments on commit 84baace

Please sign in to comment.