2019-01-17 10:59:47 -06:00
|
|
|
// Libraries
|
2018-04-27 08:42:35 -05:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
|
2019-01-17 10:59:47 -06:00
|
|
|
// Components
|
|
|
|
import QueryRow from './QueryRow';
|
|
|
|
|
|
|
|
// Types
|
2019-01-13 16:10:23 -06:00
|
|
|
import { ExploreId } from 'app/types/explore';
|
2018-10-24 04:08:15 -05:00
|
|
|
|
2019-01-13 16:10:23 -06:00
|
|
|
interface QueryRowsProps {
|
2018-10-24 07:55:56 -05:00
|
|
|
className?: string;
|
2019-01-13 16:10:23 -06:00
|
|
|
exploreId: ExploreId;
|
2019-02-04 06:41:29 -06:00
|
|
|
queryKeys: string[];
|
2018-04-27 08:42:35 -05:00
|
|
|
}
|
2019-01-17 10:59:47 -06:00
|
|
|
|
2018-10-24 07:55:56 -05:00
|
|
|
export default class QueryRows extends PureComponent<QueryRowsProps> {
|
2018-04-27 08:42:35 -05:00
|
|
|
render() {
|
2021-02-12 14:33:26 -06:00
|
|
|
const { className = '', exploreId, queryKeys } = this.props;
|
2018-04-27 08:42:35 -05:00
|
|
|
return (
|
2018-04-27 11:21:20 -05:00
|
|
|
<div className={className}>
|
2020-05-08 10:49:47 -05:00
|
|
|
{queryKeys.map((key, index) => {
|
2021-02-12 14:33:26 -06:00
|
|
|
return <QueryRow key={key} exploreId={exploreId} index={index} />;
|
2019-02-04 04:07:32 -06:00
|
|
|
})}
|
2018-04-27 11:21:20 -05:00
|
|
|
</div>
|
2018-04-27 08:42:35 -05:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|