message: change PipelineDetails component to FC
diff: import * as React from 'react';
  import { SectionHeading, ResourceSummary, ResourceLink } from '@console/internal/components/utils';
  -import { referenceForModel } from '@console/internal/module/k8s';
  +import { referenceForModel, K8sResourceKind } from '@console/internal/module/k8s';
  import { TaskModel } from '../../models';
  import { PipelineVisualization } from './PipelineVisualization';
  -const PipelineDetails = ({ obj: pipeline }) => (
  +interface PipelineDetailsProps {
  + obj: K8sResourceKind;
  +}
  +
  +const PipelineDetails: React.FC<PipelineDetailsProps> = ({ obj: pipeline }) => (
  <div className="co-m-pane__body">
  <SectionHeading text="Pipeline Overview" />
  <PipelineVisualization pipeline={pipeline} />
  @@ -12,7 +16,8 @@ const PipelineDetails = ({ obj: pipeline }) => (
  <div className="col-sm-6">
  <ResourceSummary resource={pipeline} />
  </div>
  - {pipeline.spec.tasks && (
  + {pipeline.spec &&
  + (pipeline.spec.tasks && (
  <div className="col-sm-6">
  <SectionHeading text="Tasks" />
  <dl>
  @@ -35,7 +40,7 @@ const PipelineDetails = ({ obj: pipeline }) => (
  })}
  </dl>
  </div>
  - )}
  + ))}
  </div>
  </div>
  );
  