grafana/public/app/features/explore/QueryRows.tsx

28 lines
618 B
TypeScript
Raw Normal View History

2019-01-17 10:59:47 -06:00
// Libraries
import React, { PureComponent } from 'react';
2019-01-17 10:59:47 -06:00
// Components
import QueryRow from './QueryRow';
// Types
import { ExploreId } from 'app/types/explore';
interface QueryRowsProps {
2018-10-24 07:55:56 -05:00
className?: string;
exploreId: ExploreId;
2019-02-04 06:41:29 -06:00
queryKeys: string[];
}
2019-01-17 10:59:47 -06:00
2018-10-24 07:55:56 -05:00
export default class QueryRows extends PureComponent<QueryRowsProps> {
render() {
const { className = '', exploreId, queryKeys } = this.props;
return (
<div className={className}>
{queryKeys.map((key, index) => {
return <QueryRow key={key} exploreId={exploreId} index={index} />;
2019-02-04 04:07:32 -06:00
})}
</div>
);
}
}