mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 16:45:43 -06:00
* updated * Experimenting with event bus with legacy support * Before switch to emitter * EventBus & Emitter unification * Everything using new EventBus * Making progress * Fixing merge issues * Final merge issues * Updated * Updates * Fix * Updated * Update * Update * Rename methods to publish and subscribe * Ts fixes * Updated * updated * fixing doc warnigns * removed unused file
30 lines
748 B
TypeScript
30 lines
748 B
TypeScript
// Libraries
|
|
import React, { PureComponent } from 'react';
|
|
|
|
// Components
|
|
import QueryRow from './QueryRow';
|
|
|
|
// Types
|
|
import { EventBusExtended } from '@grafana/data';
|
|
import { ExploreId } from 'app/types/explore';
|
|
|
|
interface QueryRowsProps {
|
|
className?: string;
|
|
exploreEvents: EventBusExtended;
|
|
exploreId: ExploreId;
|
|
queryKeys: string[];
|
|
}
|
|
|
|
export default class QueryRows extends PureComponent<QueryRowsProps> {
|
|
render() {
|
|
const { className = '', exploreEvents, exploreId, queryKeys } = this.props;
|
|
return (
|
|
<div className={className}>
|
|
{queryKeys.map((key, index) => {
|
|
return <QueryRow key={key} exploreEvents={exploreEvents} exploreId={exploreId} index={index} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|