table.tsx 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. import {Component, type ReactNode, useEffect} from 'react';
  2. import styled from '@emotion/styled';
  3. import type {Location, LocationDescriptorObject} from 'history';
  4. import {addSuccessMessage} from 'sentry/actionCreators/indicator';
  5. import {openModal} from 'sentry/actionCreators/modal';
  6. import GuideAnchor from 'sentry/components/assistant/guideAnchor';
  7. import type {GridColumn} from 'sentry/components/gridEditable';
  8. import GridEditable, {COL_WIDTH_UNDEFINED} from 'sentry/components/gridEditable';
  9. import SortLink from 'sentry/components/gridEditable/sortLink';
  10. import Link from 'sentry/components/links/link';
  11. import LoadingIndicator from 'sentry/components/loadingIndicator';
  12. import Pagination from 'sentry/components/pagination';
  13. import {Tooltip} from 'sentry/components/tooltip';
  14. import {IconStar} from 'sentry/icons';
  15. import {t, tct} from 'sentry/locale';
  16. import type {Organization} from 'sentry/types/organization';
  17. import type {Project} from 'sentry/types/project';
  18. import {trackAnalytics} from 'sentry/utils/analytics';
  19. import {browserHistory} from 'sentry/utils/browserHistory';
  20. import type {TableData, TableDataRow} from 'sentry/utils/discover/discoverQuery';
  21. import DiscoverQuery from 'sentry/utils/discover/discoverQuery';
  22. import type {MetaType} from 'sentry/utils/discover/eventView';
  23. import type EventView from 'sentry/utils/discover/eventView';
  24. import {isFieldSortable} from 'sentry/utils/discover/eventView';
  25. import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
  26. import {fieldAlignment, getAggregateAlias} from 'sentry/utils/discover/fields';
  27. import {MEPConsumer} from 'sentry/utils/performance/contexts/metricsEnhancedSetting';
  28. import {VisuallyCompleteWithData} from 'sentry/utils/performanceForSentry';
  29. import {MutableSearch} from 'sentry/utils/tokenizeSearch';
  30. import {useLocation} from 'sentry/utils/useLocation';
  31. import useOrganization from 'sentry/utils/useOrganization';
  32. import CellAction, {Actions, updateQuery} from 'sentry/views/discover/table/cellAction';
  33. import type {TableColumn} from 'sentry/views/discover/table/types';
  34. import {
  35. type DomainViewFilters,
  36. useDomainViewFilters,
  37. } from 'sentry/views/insights/pages/useFilters';
  38. import {getLandingDisplayFromParam} from 'sentry/views/performance/landing/utils';
  39. import {getMEPQueryParams} from './landing/widgets/utils';
  40. import type {TransactionThresholdMetric} from './transactionSummary/transactionThresholdModal';
  41. import TransactionThresholdModal, {
  42. modalCss,
  43. } from './transactionSummary/transactionThresholdModal';
  44. import {
  45. normalizeSearchConditionsWithTransactionName,
  46. transactionSummaryRouteWithQuery,
  47. } from './transactionSummary/utils';
  48. import {COLUMN_TITLES} from './data';
  49. import {
  50. createUnnamedTransactionsDiscoverTarget,
  51. getProject,
  52. getProjectID,
  53. getSelectedProjectPlatforms,
  54. UNPARAMETERIZED_TRANSACTION,
  55. } from './utils';
  56. type ColumnTitle = {
  57. title: string | ReactNode;
  58. tooltip?: string | ReactNode;
  59. };
  60. const COLUMN_TITLES_OPTIONAL_TOOLTIP = COLUMN_TITLES.map(title => {
  61. return {title};
  62. });
  63. type Props = {
  64. eventView: EventView;
  65. location: Location;
  66. organization: Organization;
  67. projects: Project[];
  68. setError: (msg: string | undefined) => void;
  69. withStaticFilters: boolean;
  70. columnTitles?: ColumnTitle[];
  71. domainViewFilters?: DomainViewFilters;
  72. summaryConditions?: string;
  73. };
  74. type State = {
  75. transaction: string | undefined;
  76. transactionThreshold: number | undefined;
  77. transactionThresholdMetric: TransactionThresholdMetric | undefined;
  78. widths: number[];
  79. };
  80. function getProjectFirstEventGroup(project: Project): '14d' | '30d' | '>30d' {
  81. const fourteen_days_ago = new Date(+new Date() - 12096e5);
  82. const thirty_days_ago = new Date(+new Date() - 25920e5);
  83. const firstEventDate = new Date(project?.firstEvent ?? '');
  84. if (firstEventDate > fourteen_days_ago) {
  85. return '14d';
  86. }
  87. if (firstEventDate > thirty_days_ago) {
  88. return '30d';
  89. }
  90. return '>30d';
  91. }
  92. function TrackHasDataAnalytics({
  93. children,
  94. isLoading,
  95. tableData,
  96. }: {
  97. children: React.ReactNode;
  98. isLoading: boolean;
  99. tableData: TableData | null;
  100. }): React.ReactNode {
  101. const organization = useOrganization();
  102. const location = useLocation();
  103. useEffect(() => {
  104. if (!isLoading) {
  105. trackAnalytics('performance_views.overview.has_data', {
  106. table_data_state:
  107. !!tableData?.data && tableData.data.length > 0 ? 'has_data' : 'no_data',
  108. tab: getLandingDisplayFromParam(location)?.field,
  109. organization,
  110. });
  111. }
  112. }, [isLoading, organization, tableData?.data, location]);
  113. return children;
  114. }
  115. class _Table extends Component<Props, State> {
  116. state: State = {
  117. widths: [],
  118. transaction: undefined,
  119. transactionThreshold: undefined,
  120. transactionThresholdMetric: undefined,
  121. };
  122. componentDidMount(): void {
  123. const {organization} = this.props;
  124. if (!this.tableMetricSet) {
  125. this.tableMetricSet = true;
  126. trackAnalytics('performance_views.landing.table.seen', {
  127. organization,
  128. });
  129. }
  130. }
  131. unparameterizedMetricSet = false;
  132. tableMetricSet = false;
  133. sendUnparameterizedAnalytic(project: Project | undefined) {
  134. const {organization, eventView} = this.props;
  135. const statsPeriod = eventView.statsPeriod ?? 'other';
  136. const projectMetadata = this.getProjectWithinMetadata(project);
  137. trackAnalytics('performance_views.landing.table.unparameterized', {
  138. organization,
  139. first_event: projectMetadata.firstEventWithin,
  140. sent_transaction: projectMetadata.sentTransaction,
  141. single_project: projectMetadata.isSingleProject,
  142. stats_period: statsPeriod,
  143. hit_multi_project_cap: projectMetadata.isAtMultiCap,
  144. });
  145. }
  146. /**
  147. * Used for cluster warning and analytics.
  148. */
  149. getProjectWithinMetadata(project: Project | undefined) {
  150. let firstEventWithin: 'none' | '14d' | '30d' | '>30d' = 'none';
  151. if (!project) {
  152. return {
  153. isSingleProject: false,
  154. firstEventWithin,
  155. sentTransaction: false,
  156. isAtMultiCap: false,
  157. };
  158. }
  159. firstEventWithin = getProjectFirstEventGroup(project);
  160. return {
  161. isSingleProject: true,
  162. firstEventWithin,
  163. sentTransaction: project?.firstTransactionEvent ?? false,
  164. isAtMultiCap: false,
  165. };
  166. }
  167. handleCellAction = (column: TableColumn<keyof TableDataRow>, dataRow: TableDataRow) => {
  168. return (action: Actions, value: React.ReactText) => {
  169. const {eventView, location, organization, projects} = this.props;
  170. trackAnalytics('performance_views.overview.cellaction', {
  171. organization,
  172. action,
  173. });
  174. if (action === Actions.EDIT_THRESHOLD) {
  175. const project_threshold = dataRow.project_threshold_config!;
  176. const transactionName = dataRow.transaction as string;
  177. const projectID = getProjectID(dataRow, projects);
  178. openModal(
  179. modalProps => (
  180. <TransactionThresholdModal
  181. {...modalProps}
  182. organization={organization}
  183. transactionName={transactionName}
  184. eventView={eventView}
  185. project={projectID}
  186. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  187. transactionThreshold={project_threshold[1]}
  188. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  189. transactionThresholdMetric={project_threshold[0]}
  190. onApply={(threshold, metric) => {
  191. if (
  192. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  193. threshold !== project_threshold[1] ||
  194. // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
  195. metric !== project_threshold[0]
  196. ) {
  197. this.setState({
  198. transaction: transactionName,
  199. transactionThreshold: threshold,
  200. transactionThresholdMetric: metric,
  201. });
  202. }
  203. addSuccessMessage(
  204. tct('[transactionName] updated successfully', {
  205. transactionName,
  206. })
  207. );
  208. }}
  209. />
  210. ),
  211. {modalCss, closeEvents: 'escape-key'}
  212. );
  213. return;
  214. }
  215. const searchConditions = normalizeSearchConditionsWithTransactionName(
  216. eventView.query
  217. );
  218. updateQuery(searchConditions, action, column, value);
  219. browserHistory.push({
  220. pathname: location.pathname,
  221. query: {
  222. ...location.query,
  223. cursor: undefined,
  224. query: searchConditions.formatString(),
  225. },
  226. });
  227. };
  228. };
  229. renderBodyCell(
  230. tableData: TableData | null,
  231. column: TableColumn<keyof TableDataRow>,
  232. dataRow: TableDataRow
  233. ): React.ReactNode {
  234. const {eventView, organization, projects, location, withStaticFilters} = this.props;
  235. if (!tableData || !tableData.meta) {
  236. return dataRow[column.key];
  237. }
  238. const tableMeta = tableData.meta;
  239. const field = String(column.key);
  240. const fieldRenderer = getFieldRenderer(field, tableMeta, false);
  241. const rendered = fieldRenderer(dataRow, {
  242. organization,
  243. location,
  244. unit: tableMeta.units?.[column.key],
  245. });
  246. const allowActions = [
  247. Actions.ADD,
  248. Actions.EXCLUDE,
  249. Actions.SHOW_GREATER_THAN,
  250. Actions.SHOW_LESS_THAN,
  251. Actions.EDIT_THRESHOLD,
  252. ];
  253. const cellActions = withStaticFilters ? [] : allowActions;
  254. const isUnparameterizedRow = dataRow.transaction === UNPARAMETERIZED_TRANSACTION;
  255. if (field === 'transaction') {
  256. const project = getProject(dataRow, projects);
  257. const projectID = project?.id;
  258. const summaryView = eventView.clone();
  259. const existingQuery = new MutableSearch(summaryView.query);
  260. if (dataRow['http.method']) {
  261. summaryView.additionalConditions.setFilterValues('http.method', [
  262. dataRow['http.method'] as string,
  263. ]);
  264. }
  265. if (dataRow.hasOwnProperty('transaction.op')) {
  266. existingQuery.removeFilter('!transaction.op');
  267. existingQuery.removeFilter('transaction.op');
  268. summaryView.query = existingQuery.formatString();
  269. if (dataRow['transaction.op']) {
  270. summaryView.additionalConditions.setFilterValues('transaction.op', [
  271. dataRow['transaction.op'] as string,
  272. ]);
  273. }
  274. }
  275. summaryView.query = summaryView.getQueryWithAdditionalConditions();
  276. if (isUnparameterizedRow && !this.unparameterizedMetricSet) {
  277. this.sendUnparameterizedAnalytic(project);
  278. this.unparameterizedMetricSet = true;
  279. }
  280. const {isInDomainView, view} = this.props.domainViewFilters ?? {};
  281. const target = isUnparameterizedRow
  282. ? createUnnamedTransactionsDiscoverTarget({
  283. organization,
  284. location,
  285. })
  286. : transactionSummaryRouteWithQuery({
  287. organization,
  288. transaction: String(dataRow.transaction) || '',
  289. query: summaryView.generateQueryStringObject(),
  290. projectID,
  291. view: (isInDomainView && view) || undefined,
  292. });
  293. return (
  294. <CellAction
  295. column={column}
  296. dataRow={dataRow}
  297. handleCellAction={this.handleCellAction(column, dataRow)}
  298. allowActions={cellActions}
  299. >
  300. <Link
  301. to={target}
  302. onClick={this.handleSummaryClick}
  303. style={{display: `block`, width: `100%`}}
  304. >
  305. {rendered}
  306. </Link>
  307. </CellAction>
  308. );
  309. }
  310. if (field.startsWith('team_key_transaction')) {
  311. // don't display per cell actions for team_key_transaction
  312. const project = getProject(dataRow, projects);
  313. const projectMetadata = this.getProjectWithinMetadata(project);
  314. if (isUnparameterizedRow) {
  315. if (projectMetadata.firstEventWithin === '14d') {
  316. return (
  317. <Tooltip
  318. title={t(
  319. 'Transactions are grouped together until we receive enough data to identify parameter patterns.'
  320. )}
  321. >
  322. <UnparameterizedTooltipWrapper data-test-id="unparameterized-indicator">
  323. <LoadingIndicator
  324. mini
  325. size={16}
  326. style={{margin: 0, width: 16, height: 16}}
  327. />
  328. </UnparameterizedTooltipWrapper>
  329. </Tooltip>
  330. );
  331. }
  332. return <span />;
  333. }
  334. return rendered;
  335. }
  336. const fieldName = getAggregateAlias(field);
  337. const value = dataRow[fieldName];
  338. if (tableMeta[fieldName] === 'integer' && typeof value === 'number' && value > 999) {
  339. return (
  340. <Tooltip
  341. title={value.toLocaleString()}
  342. containerDisplayMode="block"
  343. position="right"
  344. >
  345. <CellAction
  346. column={column}
  347. dataRow={dataRow}
  348. handleCellAction={this.handleCellAction(column, dataRow)}
  349. allowActions={cellActions}
  350. >
  351. {rendered}
  352. </CellAction>
  353. </Tooltip>
  354. );
  355. }
  356. return (
  357. <CellAction
  358. column={column}
  359. dataRow={dataRow}
  360. handleCellAction={this.handleCellAction(column, dataRow)}
  361. allowActions={cellActions}
  362. >
  363. {rendered}
  364. </CellAction>
  365. );
  366. }
  367. renderBodyCellWithData = (tableData: TableData | null) => {
  368. return (
  369. column: TableColumn<keyof TableDataRow>,
  370. dataRow: TableDataRow
  371. ): React.ReactNode => this.renderBodyCell(tableData, column, dataRow);
  372. };
  373. onSortClick(currentSortKind?: string, currentSortField?: string) {
  374. const {organization} = this.props;
  375. trackAnalytics('performance_views.landingv2.transactions.sort', {
  376. organization,
  377. field: currentSortField,
  378. direction: currentSortKind,
  379. });
  380. }
  381. paginationAnalyticsEvent = (direction: string) => {
  382. const {organization} = this.props;
  383. trackAnalytics('performance_views.landingv3.table_pagination', {
  384. organization,
  385. direction,
  386. });
  387. };
  388. renderHeadCell(
  389. tableMeta: TableData['meta'],
  390. column: TableColumn<keyof TableDataRow>,
  391. title: ColumnTitle
  392. ): React.ReactNode {
  393. const {eventView, location} = this.props;
  394. const align = fieldAlignment(column.name, column.type, tableMeta);
  395. const field = {field: column.name, width: column.width};
  396. const aggregateAliasTableMeta: MetaType = {};
  397. if (tableMeta) {
  398. Object.keys(tableMeta).forEach(key => {
  399. aggregateAliasTableMeta[getAggregateAlias(key)] = tableMeta[key];
  400. });
  401. }
  402. function generateSortLink(): LocationDescriptorObject | undefined {
  403. if (!tableMeta) {
  404. return undefined;
  405. }
  406. const nextEventView = eventView.sortOnField(field, aggregateAliasTableMeta);
  407. const queryStringObject = nextEventView.generateQueryStringObject();
  408. return {
  409. ...location,
  410. query: {...location.query, sort: queryStringObject.sort},
  411. };
  412. }
  413. const currentSort = eventView.sortForField(field, aggregateAliasTableMeta);
  414. const canSort = isFieldSortable(field, aggregateAliasTableMeta);
  415. const currentSortKind = currentSort ? currentSort.kind : undefined;
  416. const currentSortField = currentSort ? currentSort.field : undefined;
  417. const sortLink = (
  418. <SortLink
  419. align={align}
  420. title={title.title || field.field}
  421. direction={currentSortKind}
  422. canSort={canSort}
  423. generateSortLink={generateSortLink}
  424. onClick={() => this.onSortClick(currentSortKind, currentSortField)}
  425. />
  426. );
  427. if (field.field.startsWith('user_misery')) {
  428. if (title.tooltip) {
  429. return (
  430. <GuideAnchor target="project_transaction_threshold" position="top">
  431. <Tooltip isHoverable title={title.tooltip} showUnderline>
  432. {sortLink}
  433. </Tooltip>
  434. </GuideAnchor>
  435. );
  436. }
  437. return (
  438. <GuideAnchor target="project_transaction_threshold" position="top">
  439. {sortLink}
  440. </GuideAnchor>
  441. );
  442. }
  443. if (!title.tooltip) {
  444. return sortLink;
  445. }
  446. return (
  447. <Tooltip isHoverable title={title.tooltip} showUnderline>
  448. {sortLink}
  449. </Tooltip>
  450. );
  451. }
  452. renderHeadCellWithMeta = (tableMeta: TableData['meta']) => {
  453. const columnTitles = this.props.columnTitles ?? COLUMN_TITLES_OPTIONAL_TOOLTIP;
  454. return (column: TableColumn<keyof TableDataRow>, index: number): React.ReactNode =>
  455. this.renderHeadCell(tableMeta, column, columnTitles[index]!);
  456. };
  457. renderPrependCellWithData = (tableData: TableData | null) => {
  458. const {eventView} = this.props;
  459. const teamKeyTransactionColumn = eventView
  460. .getColumns()
  461. .find((col: TableColumn<React.ReactText>) => col.name === 'team_key_transaction');
  462. return (isHeader: boolean, dataRow?: any) => {
  463. if (teamKeyTransactionColumn) {
  464. if (isHeader) {
  465. const star = (
  466. <TeamKeyTransactionWrapper>
  467. <IconStar
  468. key="keyTransaction"
  469. color="yellow300"
  470. isSolid
  471. data-test-id="team-key-transaction-header"
  472. />
  473. </TeamKeyTransactionWrapper>
  474. );
  475. return [
  476. this.renderHeadCell(tableData?.meta, teamKeyTransactionColumn, {title: star}),
  477. ];
  478. }
  479. return [this.renderBodyCell(tableData, teamKeyTransactionColumn, dataRow)];
  480. }
  481. return [];
  482. };
  483. };
  484. handleSummaryClick = () => {
  485. const {organization, location, projects} = this.props;
  486. trackAnalytics('performance_views.overview.navigate.summary', {
  487. organization,
  488. project_platforms: getSelectedProjectPlatforms(location, projects),
  489. });
  490. };
  491. handleResizeColumn = (columnIndex: number, nextColumn: GridColumn) => {
  492. const widths: number[] = [...this.state.widths];
  493. widths[columnIndex] = nextColumn.width
  494. ? Number(nextColumn.width)
  495. : COL_WIDTH_UNDEFINED;
  496. this.setState({widths});
  497. };
  498. getSortedEventView() {
  499. const {eventView} = this.props;
  500. return eventView.withSorts([
  501. {
  502. field: 'team_key_transaction',
  503. kind: 'desc',
  504. },
  505. ...eventView.sorts,
  506. ]);
  507. }
  508. render() {
  509. const {eventView, organization, location, setError} = this.props;
  510. const {widths, transaction, transactionThreshold} = this.state;
  511. const columnOrder = eventView
  512. .getColumns()
  513. // remove team_key_transactions from the column order as we'll be rendering it
  514. // via a prepended column
  515. .filter(
  516. (col: TableColumn<React.ReactText>) =>
  517. col.name !== 'team_key_transaction' &&
  518. !col.name.startsWith('count_miserable') &&
  519. col.name !== 'project_threshold_config'
  520. )
  521. .map((col: TableColumn<React.ReactText>, i: number) => {
  522. if (typeof widths[i] === 'number') {
  523. return {...col, width: widths[i]};
  524. }
  525. return col;
  526. });
  527. const sortedEventView = this.getSortedEventView();
  528. const columnSortBy = sortedEventView.getSorts();
  529. const prependColumnWidths = ['max-content'];
  530. return (
  531. <GuideAnchor target="performance_table" position="top-start">
  532. <div data-test-id="performance-table">
  533. <MEPConsumer>
  534. {value => {
  535. return (
  536. <DiscoverQuery
  537. eventView={sortedEventView}
  538. orgSlug={organization.slug}
  539. location={location}
  540. setError={error => setError(error?.message)}
  541. referrer="api.performance.landing-table"
  542. transactionName={transaction}
  543. transactionThreshold={transactionThreshold}
  544. queryExtras={getMEPQueryParams(value)}
  545. >
  546. {({pageLinks, isLoading, tableData}) => (
  547. <TrackHasDataAnalytics isLoading={isLoading} tableData={tableData}>
  548. <VisuallyCompleteWithData
  549. id="PerformanceTable"
  550. hasData={
  551. !isLoading && !!tableData?.data && tableData.data.length > 0
  552. }
  553. isLoading={isLoading}
  554. >
  555. <GridEditable
  556. isLoading={isLoading}
  557. data={tableData ? tableData.data : []}
  558. columnOrder={columnOrder}
  559. columnSortBy={columnSortBy}
  560. bodyStyle={{overflow: 'visible'}}
  561. grid={{
  562. onResizeColumn: this.handleResizeColumn,
  563. renderHeadCell: this.renderHeadCellWithMeta(
  564. tableData?.meta
  565. ) as any,
  566. renderBodyCell: this.renderBodyCellWithData(tableData) as any,
  567. renderPrependColumns: this.renderPrependCellWithData(
  568. tableData
  569. ) as any,
  570. prependColumnWidths,
  571. }}
  572. />
  573. </VisuallyCompleteWithData>
  574. <Pagination
  575. pageLinks={pageLinks}
  576. paginationAnalyticsEvent={this.paginationAnalyticsEvent}
  577. />
  578. </TrackHasDataAnalytics>
  579. )}
  580. </DiscoverQuery>
  581. );
  582. }}
  583. </MEPConsumer>
  584. </div>
  585. </GuideAnchor>
  586. );
  587. }
  588. }
  589. function Table(props: Omit<Props, 'summaryConditions'> & {summaryConditions?: string}) {
  590. const summaryConditions =
  591. props.summaryConditions ?? props.eventView.getQueryWithAdditionalConditions();
  592. const domainViewFilters = useDomainViewFilters();
  593. return (
  594. <_Table
  595. {...props}
  596. summaryConditions={summaryConditions}
  597. domainViewFilters={domainViewFilters}
  598. />
  599. );
  600. }
  601. // Align the contained IconStar with the IconStar buttons in individual table
  602. // rows, which have 2px padding + 1px border.
  603. const TeamKeyTransactionWrapper = styled('div')`
  604. padding: 3px;
  605. `;
  606. const UnparameterizedTooltipWrapper = styled('div')`
  607. display: flex;
  608. align-items: center;
  609. justify-content: center;
  610. `;
  611. export default Table;