Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes eventsource icon in context menu
- Loading branch information
1 parent
47967cb
commit 6f42ea4
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
frontend/packages/knative-plugin/src/actions/add-event-source.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} alt="" />; | ||
}; | ||
|
||
export const addEventSource: KebabAction = createKebabAction( | ||
'Event Source', | ||
<HelpIcon />, | ||
<EventSourceIcon />, | ||
ImportOptions.EVENTSOURCE, | ||
); |