github.com/argoproj/argo-cd@v1.8.7/ui/src/app/applications/components/application-resource-events/application-resource-events.tsx (about) 1 import {MockupList} from 'argo-ui'; 2 import * as React from 'react'; 3 4 import {DataLoader, EventsList} from '../../../shared/components'; 5 import {services} from '../../../shared/services'; 6 7 export const ApplicationResourceEvents = (props: {applicationName: string; resource?: {namespace: string; name: string; uid: string}}) => ( 8 <div className='application-resource-events'> 9 <DataLoader 10 load={() => (props.resource ? services.applications.resourceEvents(props.applicationName, props.resource) : services.applications.events(props.applicationName))} 11 loadingRenderer={() => <MockupList height={50} marginTop={10} />}> 12 {events => <EventsList events={events} />} 13 </DataLoader> 14 </div> 15 );