switch IntegrationDetailHistoryListViewItemActions to function component
@@ -9,16 +9,19 @@ export interface IIntegrationDetailHistoryListViewItemActionsProps {
integrationId: string;
}
-export class IntegrationDetailHistoryListViewItemActions extends React.Component<
+export const IntegrationDetailHistoryListViewItemActions: React.FunctionComponent<
IIntegrationDetailHistoryListViewItemActionsProps
-> {
- public render() {
+> = (
+ {
+ actions,
+ integrationId
+ }) => {
return (
<DropdownKebab
- id={`integration-${this.props.integrationId}-action-menu`}
+ id={`integration-${integrationId}-action-menu`}
pullRight={true}
>
- {this.props.actions.map((a, index) => {
+ {actions.map((a, index) => {
return (
<li role={'presentation'} key={index}>
{a.href ? (
@@ -51,5 +54,4 @@ export class IntegrationDetailHistoryListViewItemActions extends React.Component
})}
</DropdownKebab>
);
- }
-}
+};
