mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
b0bd242eda
* Inline datasource actions into initialisation * Simplify url handling * Add comments * Remove split property from state and split Explore.tsx to 2 components * Add comments * Simplify and fix splitOpen and splitClose actions * Update public/app/features/explore/ExplorePaneContainer.tsx Co-authored-by: Giordano Ricci <gio.ricci@grafana.com> * Update public/app/features/explore/state/explorePane.test.ts Co-authored-by: Giordano Ricci <gio.ricci@grafana.com> * Update public/app/features/explore/Wrapper.tsx Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> * Fix test * Fix lint Co-authored-by: Giordano Ricci <gio.ricci@grafana.com> Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
28 lines
618 B
TypeScript
28 lines
618 B
TypeScript
// Libraries
|
|
import React, { PureComponent } from 'react';
|
|
|
|
// Components
|
|
import QueryRow from './QueryRow';
|
|
|
|
// Types
|
|
import { ExploreId } from 'app/types/explore';
|
|
|
|
interface QueryRowsProps {
|
|
className?: string;
|
|
exploreId: ExploreId;
|
|
queryKeys: string[];
|
|
}
|
|
|
|
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} />;
|
|
})}
|
|
</div>
|
|
);
|
|
}
|
|
}
|