Skip to content

Commit

Permalink
fixes eventsource icon in context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
invincibleJai committed May 14, 2020
1 parent 47967cb commit cce382c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/packages/knative-plugin/src/actions/add-event-source.tsx
@@ -1,13 +1,21 @@
import * as React from 'react';
import { HelpIcon } from '@patternfly/react-icons';
import {
createKebabAction,
KebabAction,
} from '@console/dev-console/src/utils/add-resources-menu-utils';
import { ImportOptions } from '@console/dev-console/src/components/import/import-types';
import * as eventSourceImg from '../imgs/event-source.svg';

const eventSourceIconStyle = {
width: '1em',
height: '1em',
};
const EventSourceIcon: React.FC = () => {
return <img style={eventSourceIconStyle} src={eventSourceImg} />;
};

export const addEventSource: KebabAction = createKebabAction(
'Event Source',
<HelpIcon />,
<EventSourceIcon />,
ImportOptions.EVENTSOURCE,
);

0 comments on commit cce382c

Please sign in to comment.