Skip to content

Commit

Permalink
ui: use StatementsPage from admin-ui-components
Browse files Browse the repository at this point in the history
- Replace statementsPage component with extracted version
from `admin-ui-component` package.
- Provide correct props bindings to connected components,
because changed logic of calling analytics tracking functionality.

Release note: none
  • Loading branch information
koorosh committed Jul 30, 2020
1 parent ed82414 commit aa0d5fe
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 344 deletions.
1 change: 1 addition & 0 deletions pkg/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"cypress:update-snapshots": "yarn cypress run --env updateSnapshots=true --spec 'cypress/integration/**/*.visual.spec.ts'"
},
"dependencies": {
"@cockroachlabs/admin-ui-components": "^0.1.7",
"analytics-node": "^3.4.0-beta.1",
"antd": "^3.25.2",
"babel-polyfill": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/src/app.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
} from "src/views/databases/containers/databases";
import { TableMain } from "src/views/databases/containers/tableDetails";
import { DataDistributionPage } from "src/views/cluster/containers/dataDistribution";
import { StatementsPage } from "src/views/statements/statementsPage";
import { StatementsPage } from "@cockroachlabs/admin-ui-components";
import { StatementDetails } from "src/views/statements/statementDetails";
import Debug from "src/views/reports/containers/debug";
import { ReduxDebug } from "src/views/reports/containers/redux";
Expand Down
34 changes: 0 additions & 34 deletions pkg/ui/src/views/statements/statementsPage.spec.tsx

This file was deleted.

Loading

0 comments on commit aa0d5fe

Please sign in to comment.